diff --git a/sphinx_gemini_builder/writer.py b/sphinx_gemini_builder/writer.py index 12b1f19..ca98e8d 100644 --- a/sphinx_gemini_builder/writer.py +++ b/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