summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/context/third/markdown/examples/context.tex
blob: 99c4eb9e5f257d4310c0f0a9f391ee3a9ece86a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
\enableregime[utf]
\usetypescript[modern][ec]
\setupbodyfont[10pt,rm]
\setupexternalfigures[location={local,global,default}]
\usemodule[t][markdown]
\def\markdownOptionHashEnumerators{true}
\def\markdownOptionDefinitionLists{true}
\def\markdownOptionSmartEllipses{true}
\def\markdownOptionFootnotes{true}
\def\markdownOptionInlineFootnotes{true}
\def\markdownOptionFencedCode{true}
\def\markdownOptionContentBlocks{true}
\definetyping [latex]
\setuptyping  [latex] [option=TEX]
\starttext
% Typeset the document `example.md` by letting the Markdown package handle
% the conversion internally.
\markdownInput{./example.md}

% 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`.
\doiffileelse{./example.tex}{\input example}{}

\startmarkdown
Here are some non-ASCII characters: *ěščřžýáíé*
and ConTeXt special characters: *|*.
\stopmarkdown
\stoptext