fix: deleted render_references restored
This commit is contained in:
@@ -16,6 +16,8 @@ class FiftyOhmHtmlRenderer(HtmlRenderer):
|
|||||||
|
|
||||||
margin_anchor_id = 0
|
margin_anchor_id = 0
|
||||||
margin_id = 0
|
margin_id = 0
|
||||||
|
section_url = "DeineMama.html"
|
||||||
|
ref_id = 0
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__(Dash, BlockComment, SpanComment, Quote, Underline, Tag, HalfwidthSpaces, NonbreakingSpaces, NonbreakingSpacesDots, HalfwidthSpaces, NonbreakingSpaces, NonbreakingSpacesDots, References)
|
super().__init__(Dash, BlockComment, SpanComment, Quote, Underline, Tag, HalfwidthSpaces, NonbreakingSpaces, NonbreakingSpacesDots, HalfwidthSpaces, NonbreakingSpaces, NonbreakingSpacesDots, References)
|
||||||
@@ -101,4 +103,9 @@ class FiftyOhmHtmlRenderer(HtmlRenderer):
|
|||||||
"" : "",
|
"" : "",
|
||||||
" " : " "
|
" " : " "
|
||||||
}
|
}
|
||||||
return f"{lookup[token.first]}{token.second}{lookup[token.third]}"
|
return f"{lookup[token.first]}{token.second}{lookup[token.third]}"
|
||||||
|
|
||||||
|
def render_references(self, token):
|
||||||
|
return f"<a href="{self.section_url}#ref_{token.first}" onclick="highlightRef('{token.first}');">{self.ref_id}</a>"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user