Add: Link references
This commit is contained in:
parent
450bfe2d05
commit
0800969c39
1 changed files with 5 additions and 1 deletions
|
@ -592,7 +592,11 @@ class GeminiTranslator(SphinxTranslator):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def visit_reference(self, node: Element) -> None:
|
def visit_reference(self, node: Element) -> None:
|
||||||
pass
|
if 'refuri' in node:
|
||||||
|
self.end_block()
|
||||||
|
self.add_link(node['refuri'], node.astext())
|
||||||
|
self.end_block()
|
||||||
|
raise nodes.SkipNode
|
||||||
|
|
||||||
def depart_reference(self, node: Element) -> None:
|
def depart_reference(self, node: Element) -> None:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue