Add: Link references

This commit is contained in:
Kujiu 2021-01-31 03:33:04 +01:00
parent 450bfe2d05
commit 0800969c39
Signed by: kujiu
GPG key ID: ABBB2CAC6855599F

View file

@ -592,7 +592,11 @@ class GeminiTranslator(SphinxTranslator):
pass
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:
pass