From e76e861a17b9fd8398c31866f1b8462be13d38fb Mon Sep 17 00:00:00 2001 From: Jiri Kalvoda Date: Sun, 27 Aug 2023 23:28:53 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Implementace=20citac=C3=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/formatitko/html_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formatitko/html_generator.py b/src/formatitko/html_generator.py index 2efc93e..fa2828a 100644 --- a/src/formatitko/html_generator.py +++ b/src/formatitko/html_generator.py @@ -290,7 +290,7 @@ class HTMLGenerator(OutputGenerator): self.writeln("") def generate_Cite(self, e: Cite): - self.writeln("") + 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("") From aa4120a67b31dfa8a8d4371e2e6aed3452e94bb2 Mon Sep 17 00:00:00 2001 From: Greenscreener Date: Tue, 19 Sep 2023 23:24:24 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Zapnut=C3=AD=20citac=C3=AD=20v=20defaultn?= =?UTF-8?q?=C3=ADm=20pandoc=20importu.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/formatitko/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formatitko/util.py b/src/formatitko/util.py index 1a37400..f4eb6b4 100644 --- a/src/formatitko/util.py +++ b/src/formatitko/util.py @@ -37,7 +37,7 @@ def parse_string(s: str) -> list[Union[Str, Space]]: # we ever want to disable or enable some of panflute's markdown extensions, # this is the place to do it. def import_md(s: str, standalone: bool=True) -> Union[Doc, list[Element]]: - return convert_text(s, standalone=standalone, input_format="markdown-definition_lists-citations-latex_macros") + return convert_text(s, standalone=standalone, input_format="markdown-definition_lists-latex_macros") def import_md_list(s: str) -> list[Element]: return import_md(s, standalone=False)