From 3e9a44ea155766214d8657ed79db2206592b6e8e Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 1 Mar 2022 03:01:11 +0000 Subject: CTAN sync 202203010301 --- macros/generic/markdown/examples/context-mkii.tex | 2 ++ macros/generic/markdown/examples/context-mkiv.tex | 2 ++ macros/generic/markdown/examples/latex.tex | 21 +++++++++++++++++++++ 3 files changed, 25 insertions(+) (limited to 'macros/generic/markdown/examples') diff --git a/macros/generic/markdown/examples/context-mkii.tex b/macros/generic/markdown/examples/context-mkii.tex index b5aaa0e04e..19a7fb2931 100644 --- a/macros/generic/markdown/examples/context-mkii.tex +++ b/macros/generic/markdown/examples/context-mkii.tex @@ -35,7 +35,9 @@ % Typeset the document `example.tex` that we prepared separately using the % Lua command-line interface and that contains a plain TeX representation % of the document `example.md`. +\catcode`\%=12\relax \doiffileelse{./example.tex}{\input example}{} +\catcode`\%=14\relax % Typeset inline markdown text. \startmarkdown diff --git a/macros/generic/markdown/examples/context-mkiv.tex b/macros/generic/markdown/examples/context-mkiv.tex index 65d1d05468..825632c5aa 100644 --- a/macros/generic/markdown/examples/context-mkiv.tex +++ b/macros/generic/markdown/examples/context-mkiv.tex @@ -47,7 +47,9 @@ % Typeset the document `example.tex` that we prepared separately using the % Lua command-line interface and that contains a plain TeX representation % of the document `example.md`. +\catcode`\%=12\relax \doiffileelse{./example.tex}{\input example}{} +\catcode`\%=14\relax % Typeset inline markdown text. \startmarkdown diff --git a/macros/generic/markdown/examples/latex.tex b/macros/generic/markdown/examples/latex.tex index cf820dfa36..337263d38f 100644 --- a/macros/generic/markdown/examples/latex.tex +++ b/macros/generic/markdown/examples/latex.tex @@ -43,9 +43,30 @@ date: \today % Typeset the document `example.tex` that we prepared separately using the % Lua command-line interface of the Markdown package and that contains a % plain TeX representation of the document `example.md`. +\catcode`\%=12\relax \InputIfFileExists{./example.tex}{}{} +\catcode`\%=14\relax \begin{markdown} Here are some non-ASCII characters: *ěščřžýáíé*. \end{markdown} + +\begin{markdown*}{html, hybrid} +Here is some HTML code mixed *with Markdown*. In pdf \TeX, the HTML code +will be silently ignored, whereas in \TeX 4ht, the HTML code will be passed +through to the output: + + + + + + + + + + + + +
EmilTobiasLinus
161410
+\end{markdown*} \end{document} -- cgit v1.2.3