summaryrefslogtreecommitdiff
path: root/macros/generic/markdown/examples/context.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/generic/markdown/examples/context.tex
Initial commit
Diffstat (limited to 'macros/generic/markdown/examples/context.tex')
-rw-r--r--macros/generic/markdown/examples/context.tex31
1 files changed, 31 insertions, 0 deletions
diff --git a/macros/generic/markdown/examples/context.tex b/macros/generic/markdown/examples/context.tex
new file mode 100644
index 0000000000..7ed432344a
--- /dev/null
+++ b/macros/generic/markdown/examples/context.tex
@@ -0,0 +1,31 @@
+\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}
+\def\markdownOptionPipeTables{true}
+\def\markdownOptionTableCaptions{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