summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/markdown/markdown.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/markdown/markdown.tex')
-rw-r--r--Master/texmf-dist/tex/generic/markdown/markdown.tex31
1 files changed, 28 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/generic/markdown/markdown.tex b/Master/texmf-dist/tex/generic/markdown/markdown.tex
index 5e87d94a0e3..a9568c2ad7b 100644
--- a/Master/texmf-dist/tex/generic/markdown/markdown.tex
+++ b/Master/texmf-dist/tex/generic/markdown/markdown.tex
@@ -45,8 +45,8 @@
%%
%% The names of the source files used are shown above.
%%
-\def\markdownLastModified{2021/09/26}%
-\def\markdownVersion{2.11.0-0-g4505824}%
+\def\markdownLastModified{2021/12/30}%
+\def\markdownVersion{2.12.0-1-g976f074}%
\let\markdownBegin\relax
\let\markdownEnd\relax
\let\markdownInput\relax
@@ -67,8 +67,10 @@
\let\markdownOptionContentBlocks\undefined
\let\markdownOptionContentBlocksLanguageMap\undefined
\let\markdownOptionDefinitionLists\undefined
+\let\markdownOptionEagerCache\undefined
\let\markdownOptionFootnotes\undefined
\let\markdownOptionFencedCode\undefined
+\let\markdownOptionHardLineBreaks\undefined
\let\markdownOptionHashEnumerators\undefined
\let\markdownOptionHeaderAttributes\undefined
\let\markdownOptionHtml\undefined
@@ -199,6 +201,8 @@
\markdownRendererJekyllDataMappingEndPrototype}%
\def\markdownRendererJekyllDataSequenceBegin{%
\markdownRendererJekyllDataSequenceBeginPrototype}%
+\def\markdownRendererJekyllDataSequenceEnd{%
+ \markdownRendererJekyllDataSequenceEndPrototype}%
\def\markdownRendererJekyllDataBoolean{%
\markdownRendererJekyllDataBooleanPrototype}%
\def\markdownRendererJekyllDataNumber{%
@@ -434,6 +438,9 @@
\ifx\markdownOptionDefinitionLists\undefined\else
definitionLists = \markdownOptionDefinitionLists,
\fi
+\ifx\markdownOptionEagerCache\undefined\else
+ eagerCache = \markdownOptionEagerCache,
+\fi
\ifx\markdownOptionFinalizeCache\undefined\else
finalizeCache = \markdownOptionFinalizeCache,
\fi
@@ -445,6 +452,9 @@
\ifx\markdownOptionFencedCode\undefined\else
fencedCode = \markdownOptionFencedCode,
\fi
+\ifx\markdownOptionHardLineBreaks\undefined\else
+ hardLineBreaks = \markdownOptionHardLineBreaks,
+\fi
\ifx\markdownOptionHashEnumerators\undefined\else
hashEnumerators = \markdownOptionHashEnumerators,
\fi
@@ -656,7 +666,22 @@
|endgroup
\else
\markdownInfo{Using mode 2: Direct Lua access}%
-\def\markdownLuaExecute#1{\directlua{local print = tex.print #1}}%
+\begingroup
+ \catcode`|=0%
+ \catcode`\\=12%
+ |gdef|markdownLuaExecute#1{%
+ |directlua{%
+ local function print(input)
+ local output = {}
+ for line in input:gmatch("[^\r\n]+") do
+ table.insert(output, line)
+ end
+ tex.print(output)
+ end
+ #1
+ }%
+ }%
+|endgroup
\fi
\begingroup
\catcode`|=0%