diff options
author | Norbert Preining <norbert@preining.info> | 2022-03-01 03:01:11 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-03-01 03:01:11 +0000 |
commit | 3e9a44ea155766214d8657ed79db2206592b6e8e (patch) | |
tree | 8bac160137045a4244d7a7462bb2ee51adc70e9c /macros/generic/markdown/examples | |
parent | 7a8d1925127ad121a8f591db931524f9b8eacb93 (diff) |
CTAN sync 202203010301
Diffstat (limited to 'macros/generic/markdown/examples')
-rw-r--r-- | macros/generic/markdown/examples/context-mkii.tex | 2 | ||||
-rw-r--r-- | macros/generic/markdown/examples/context-mkiv.tex | 2 | ||||
-rw-r--r-- | macros/generic/markdown/examples/latex.tex | 21 |
3 files changed, 25 insertions, 0 deletions
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 <b>HTML code</b> 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: + +<table border="1"> + <tr> + <td>Emil</td> + <td>Tobias</td> + <td>Linus</td> + </tr> + <tr> + <td>16</td> + <td>14</td> + <td>10</td> + </tr> +</table> +\end{markdown*} \end{document} |