| 1 |
% minted.4ht (2024-09-27-09:25), generated from tex4ht-4ht.tex |
| 2 |
% Copyright 2022-2024 TeX Users Group |
| 3 |
% |
| 4 |
% This work may be distributed and/or modified under the |
| 5 |
% conditions of the LaTeX Project Public License, either |
| 6 |
% version 1.3c of this license or (at your option) any |
| 7 |
% later version. The latest version of this license is in |
| 8 |
% http://www.latex-project.org/lppl.txt |
| 9 |
% and version 1.3c or later is part of all distributions |
| 10 |
% of LaTeX version 2005/12/01 or later. |
| 11 |
% |
| 12 |
% This work has the LPPL maintenance status "maintained". |
| 13 |
% |
| 14 |
% The Current Maintainer of this work |
| 15 |
% is the TeX4ht Project <http://tug.org/tex4ht>. |
| 16 |
% |
| 17 |
% If you modify this program, changing the |
| 18 |
% version identification would be appreciated. |
| 19 |
\immediate\write-1{version 2024-09-27-09:25} |
| 20 |
|
| 21 |
|
| 22 |
\NewConfigure{InlineCode}{2} |
| 23 |
% this is a hack to hide a newline that is produced, and which causes spurious space in the output |
| 24 |
\NewConfigure{MintedHideNewline}{2} |
| 25 |
% I cannot reproduce the newline issue now, but it seems that |
| 26 |
% this comment can hide desired tags sometimes, so we should disable it. |
| 27 |
% See https://github.com/michal-h21/make4ht/issues/92 |
| 28 |
%\Configure{MintedHideNewline}{\HCode{<!--}}{\HCode{-->}} |
| 29 |
|
| 30 |
\def\:tempa#1{% |
| 31 |
\endgroup% |
| 32 |
\begingroup% |
| 33 |
\Configure{BVerbatimInput}{\HCode{}\ht:special{t4ht@(}}% \HCode is necessary for correct paragraph handlingling |
| 34 |
{\a:MintedHideNewline}{\ht:special{t4ht@)}}{}{}% also hide newline and spurious spaces |
| 35 |
\a:InlineCode% |
| 36 |
\begingroup% |
| 37 |
\o:minted@inline@iii:{#1}\b:MintedHideNewline% |
| 38 |
\b:InlineCode% |
| 39 |
\endgroup% |
| 40 |
} |
| 41 |
|
| 42 |
\HLet\minted@inline@iii\:tempa |
| 43 |
|
| 44 |
% support for background color in Minted listings |
| 45 |
\NewConfigure{MintedColorbg}{2} |
| 46 |
|
| 47 |
\NewConfigure{mintedfixes}[1]{\concat:config\a:mintedfixes{#1}} |
| 48 |
\let\a:mintedfixes\empty |
| 49 |
|
| 50 |
\def\:tempa#1{\a:mintedfixes\o:minted@input:{#1}} |
| 51 |
|
| 52 |
\Configure{mintedfixes}{\def\PYGZlt{\textless}\def\PYGZgt{\textgreater}} |
| 53 |
|
| 54 |
\HLet\minted@input\:tempa |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
\Hinput{minted} |
| 59 |
\endinput |
| 60 |
|