Browse Source

Add: Link references

main
Kujiu 1 year ago
parent
commit
0800969c39
Signed by: kujiu
GPG Key ID: ABBB2CAC6855599F
  1. 6
      sphinx_gemini_builder/writer.py

6
sphinx_gemini_builder/writer.py

@ -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

Loading…
Cancel
Save