feat(docs): parse info.md as github-flavored markdown

resolves #78
This commit is contained in:
htfab
2024-12-05 02:41:50 +01:00
parent a48b1c7446
commit 525e0a5e1a
2 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -886,11 +886,11 @@ class Project:
try:
doc = chevron.render(doc_template, template_args)
fh.write(doc)
fh.write("\n\\pagebreak\n")
fh.write("\n```{=latex}\n\\pagebreak\n```\n")
except IndexError:
logging.warning("missing pins in info.yaml, skipping")
pdf_cmd = "pandoc --pdf-engine=xelatex --resource-path=docs -i datasheet.md -o datasheet.pdf"
pdf_cmd = "pandoc --pdf-engine=xelatex --resource-path=docs -i datasheet.md -o datasheet.pdf --from gfm+raw_attribute+smart"
logging.info(pdf_cmd)
p = subprocess.run(pdf_cmd, shell=True)
if p.returncode != 0: