Skip to content

Commit

Permalink
Merge pull request #516 from Witiko/fix/minted3
Browse files Browse the repository at this point in the history
Support minted 3.0
  • Loading branch information
Witiko authored Oct 13, 2024
2 parents ce859c5 + b697ae5 commit e0f0b08
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ 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: 1 addition & 0 deletions examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ 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: 5 additions & 18 deletions markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
%<*driver>
\documentclass{ltxdockit}
\usepackage[american]{babel}
\usepackage{amsmath,btxdockit,doc,fancyvrb,graphicx,hologo,microtype}
\IfFileExists{minted2.sty}{\usepackage{minted2}}{\usepackage{minted}}
\usepackage{amsmath,btxdockit,doc,fancyvrb,graphicx,hologo,microtype,minted}

% Set up the style.
\usepackage{xcolor}
Expand Down Expand Up @@ -37176,17 +37175,6 @@ 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 @@ -37195,9 +37183,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 @@ -37207,8 +37195,7 @@ end
%
% \end{markdown}
% \begin{macrocode}
{ \markdownRendererInputFencedCode{#1}{}{} }
}
{ \markdownRendererInputFencedCode{#1}{}{} }
}
}
}
Expand Down

0 comments on commit e0f0b08

Please sign in to comment.