From 2f3a6d75e03e503acae16295f5875153fb047f65 Mon Sep 17 00:00:00 2001 From: Michael Greminger Date: Sun, 22 Feb 2026 22:56:23 -0600 Subject: [PATCH] feat: disable implicit_figures This allows alt text for images in md to work as expected --- app/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index f3932e7..7b09f70 100644 --- a/app/main.py +++ b/app/main.py @@ -40,12 +40,12 @@ async def convert(self): match self.doc_type: case "pdf": paper_size_variable = "us-letter" if self.paper_size == "letter" else "a4" - cmd = f"pandoc --from markdown --to pdf --standalone --embed-resources --no-highlight \ + cmd = f"pandoc --from markdown-implicit_figures --to pdf --standalone --embed-resources --no-highlight \ --pdf-engine=typst {MD_FILE_NAME} \ -V papersize={paper_size_variable} \ -o {output_file_name}" case "tex": - cmd = f"pandoc --from markdown --to latex --standalone --embed-resources --no-highlight \ + cmd = f"pandoc --from markdown-implicit_figures --to latex --standalone --embed-resources --no-highlight \ -V papersize={self.paper_size} \ {MD_FILE_NAME} -o {output_file_name}" case "docx": @@ -54,7 +54,7 @@ async def convert(self): else: reference_doc = "/code/app/reference_docs/reference_a4.docx" - cmd = f"pandoc --from markdown --to {self.doc_type} --standalone --embed-resources --no-highlight \ + cmd = f"pandoc --from markdown-implicit_figures --to {self.doc_type} --standalone --embed-resources --no-highlight \ --reference-doc={reference_doc} \ {MD_FILE_NAME} -o {output_file_name}" case _: