Implementace citací

This commit is contained in:
Jiří Kalvoda 2023-08-27 23:28:53 +02:00
parent c1430069ab
commit e76e861a17

View file

@ -290,7 +290,7 @@ class HTMLGenerator(OutputGenerator):
self.writeln("<!-- FIXME: Citations not implemented -->")
def generate_Cite(self, e: Cite):
self.writeln("<!-- FIXME: Cites not implemented -->")
self.generate_simple_tag(e, tag="a", attributes=self.common_attributes(e) | {"href": f"#ref-{e.citations[0].id}"})
def generate_Definition(self, e: Definition):
self.writeln("<!-- FIXME: Definitions not implemented -->")