ihrke / markdown-paper

Write a LaTeX paper in markdown.
106 stars 19 forks source link

Bug: Code snippets are not supported #6

Open titanism opened 3 weeks ago

titanism commented 3 weeks ago

For example, if you include a markdown code block such as the gist below it won't render and instead throws an err:r

Package hyperref Warning: Option `bookmarks' has already been used,
(hyperref)                setting the option has no effect on input line 36.

(/usr/local/texlive/2024/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amsopn.sty))
No file WHITEPAPER.aux.
(/usr/local/texlive/2024/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2024/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/grfext/grfext.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/mathcolor.ltx))
Overfull \hbox (14.52219pt too wide) in paragraph at lines 162--165
\OT1/cmr/m/n/12 his-tory, threat mod-el-ing, sys-tems and se-cu-rity ar-chi-tec
-ture, and fu-ture roadmap.
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsfonts/umsb.fd)
Overfull \hbox (2.61108pt too wide) has occurred while \output is active
[]
[1{/usr/local/texlive/2024/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]

! LaTeX Error: Environment Shaded undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.197 \begin{Shaded}

?

Example gist: https://gist.github.com/titanism/2a2b36b04415f5811957d11fbf854eb0

titanism commented 3 weeks ago

This only happens when you specify the language, e.g. js