Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support minted 3.0 #516

Merged
merged 1 commit into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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