diff options
author | Karl Berry <karl@freefriends.org> | 2021-12-30 21:19:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-12-30 21:19:38 +0000 |
commit | d57ba3afd9451f2d57e12ab453816fee5c54d12b (patch) | |
tree | 1db60660340301ebb2a2617f821ab6d6a421acab /Master/texmf-dist/tex/generic | |
parent | 346bda46d72c2cccd85d29ee00c862ec307acbb0 (diff) |
markdown (30dec21)
git-svn-id: svn://tug.org/texlive/trunk@61448 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic')
-rw-r--r-- | Master/texmf-dist/tex/generic/markdown/markdown.tex | 31 |
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% |