diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/third')
-rw-r--r-- | Master/texmf-dist/tex/context/third/markdown/t-markdown.tex | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/context/third/markdown/t-markdown.tex b/Master/texmf-dist/tex/context/third/markdown/t-markdown.tex index 115836433e6..bad0124577b 100644 --- a/Master/texmf-dist/tex/context/third/markdown/t-markdown.tex +++ b/Master/texmf-dist/tex/context/third/markdown/t-markdown.tex @@ -61,16 +61,16 @@ callback.register("process_input_buffer", function() end) local new_callback = callback.find("process_input_buffer") if new_callback == false then - tex.print(unescape([[|let|markdownDirectLua|directlua - |let|directlua|undefined - |input markdown - |let|directlua|markdownDirectLua - |let|markdownDirectLua|undefined]])) + tex.print(unescape([[|def|markdownMode{1}|input markdown]])) else callback.register("process_input_buffer", old_callback) tex.print(unescape("|input markdown")) end}% \fi +\ifnum\markdownMode<2 + \def\markdownMakeOther{% + \catcode`|=12}% +\fi \def\markdownInfo#1{\writestatus{markdown}{#1.}}% \def\markdownWarning#1{\writestatus{markdown\space warn}{#1.}}% \begingroup @@ -81,11 +81,20 @@ {|stopmarkdown}}% |endgroup \def\markdownRendererLineBreakPrototype{\blank}% -\long\def\markdownRendererLinkPrototype#1#2#3{% - \useURL[#1][#2][][#3]#1\footnote[#1]{\ifx\empty#3\empty\else#3: - \fi\tt<\hyphenatedurl{#2}>}}% -\long\def\markdownRendererImagePrototype#1#2#3{% - \placefigure[][fig:#1]{#3}{\externalfigure[#2]}}% +\def\markdownRendererLeftBracePrototype{\textbraceleft}% +\def\markdownRendererRightBracePrototype{\textbraceright}% +\def\markdownRendererDollarSignPrototype{\textdollar}% +\def\markdownRendererPercentSignPrototype{\percent}% +\def\markdownRendererUnderscorePrototype{\textunderscore}% +\def\markdownRendererCircumflexPrototype{\textcircumflex}% +\def\markdownRendererBackslashPrototype{\textbackslash}% +\def\markdownRendererTildePrototype{\textasciitilde}% +\def\markdownRendererPipePrototype{\char`|}% +\long\def\markdownRendererLinkPrototype#1#2#3#4{% + \useURL[#1][#3][][#4]#1\footnote[#1]{\ifx\empty#4\empty\else#4: + \fi\tt<\hyphenatedurl{#3}>}}% +\long\def\markdownRendererImagePrototype#1#2#3#4{% + \placefigure[][fig:#1]{#4}{\externalfigure[#3]}}% \def\markdownRendererUlBeginPrototype{\startitemize}% \def\markdownRendererUlBeginTightPrototype{\startitemize[packed]}% \def\markdownRendererUlItemPrototype{\item}% @@ -114,7 +123,7 @@ \startMarkdownConTeXtDlPrototype}% \def\markdownRendererDlBeginTightPrototype{% \startMarkdownConTeXtDlTightPrototype}% -\long\long\def\markdownRendererDlItemPrototype#1{% +\long\def\markdownRendererDlItemPrototype#1{% \markdownConTeXtDlItemPrototype{#1}}% \def\markdownRendererDlEndPrototype{% \stopMarkdownConTeXtDlPrototype}% |