Skip to content

Commit

Permalink
Fall back on minted 2.9
Browse files Browse the repository at this point in the history
Minted 3.0 currently has issue with the distribution, see
<gpoore/minted#401>.
  • Loading branch information
Witiko committed Sep 30, 2024
1 parent 3153f3e commit 8e72680
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ EXAMPLES_SOURCES=examples/context-mkiv.tex \
examples/optex.tex
EXAMPLES=examples/context-mkiv.pdf \
examples/latex-pdftex.pdf examples/latex-xetex.pdf examples/latex-luatex.pdf \
examples/latex-tex4ht.html examples/latex-tex4ht.css \
examples/optex.pdf
TESTS=tests/test.sh tests/test.py tests/requirements.txt tests/support/*.tex \
tests/templates/*/*/head.tex.m4 tests/templates/*/*/body.tex.m4 \
Expand Down
1 change: 0 additions & 1 deletion examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ LUACLI_OPTIONS=\
OUTPUT=\
context-mkiv.pdf \
latex-pdftex.pdf latex-xetex.pdf latex-luatex.pdf \
latex-tex4ht.html latex-tex4ht.css \
optex.pdf

# This is the default pseudo-target.
Expand Down
23 changes: 18 additions & 5 deletions markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
%<*driver>
\documentclass{ltxdockit}
\usepackage[american]{babel}
\usepackage{amsmath,btxdockit,doc,fancyvrb,graphicx,hologo,microtype,minted}
\usepackage{amsmath,btxdockit,doc,fancyvrb,graphicx,hologo,microtype}
\IfFileExists{minted2.sty}{\usepackage{minted2}}{\usepackage{minted}}

% Set up the style.
\usepackage{xcolor}
Expand Down Expand Up @@ -37047,6 +37048,17 @@ end
\catcode`\#=12\relax
}
{
\ltx@ifpackageloaded
{ minted2 }
{
\catcode`\#=6\relax
\exp_args:NV
\inputminted
\l_tmpa_tl
{ #1 }
\catcode`\#=12\relax
}
{
% \end{macrocode}
% \par
% \begin{markdown}
Expand All @@ -37055,9 +37067,9 @@ end
%
% \end{markdown}
% \begin{macrocode}
\ltx@ifpackageloaded
{ listings }
{ \lstinputlisting[language=\l_tmpa_tl]{#1} }
\ltx@ifpackageloaded
{ listings }
{ \lstinputlisting[language=\l_tmpa_tl]{#1} }
% \end{macrocode}
% \par
% \begin{markdown}
Expand All @@ -37067,7 +37079,8 @@ end
%
% \end{markdown}
% \begin{macrocode}
{ \markdownRendererInputFencedCode{#1}{}{} }
{ \markdownRendererInputFencedCode{#1}{}{} }
}
}
}
}
Expand Down

0 comments on commit 8e72680

Please sign in to comment.