summaryrefslogtreecommitdiff
path: root/macros/generic/markdown/examples/context-mkiv.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/generic/markdown/examples/context-mkiv.tex')
-rw-r--r--macros/generic/markdown/examples/context-mkiv.tex29
1 files changed, 18 insertions, 11 deletions
diff --git a/macros/generic/markdown/examples/context-mkiv.tex b/macros/generic/markdown/examples/context-mkiv.tex
index 825632c5aa..419b34b554 100644
--- a/macros/generic/markdown/examples/context-mkiv.tex
+++ b/macros/generic/markdown/examples/context-mkiv.tex
@@ -7,16 +7,23 @@
\usemodule[t][markdown]
% Set options of the Markdown module.
-\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}
-\def\markdownOptionTaskLists{true}
+\setupmarkdown
+ [
+ hashEnumerators = yes,
+ definitionLists = yes,
+ smartEllipses = yes,
+ footnotes = yes,
+ inlineFootnotes = yes,
+ fencedCode = yes,
+ contentBlocks = yes,
+ pipeTables = yes,
+ tableCaptions = yes,
+ taskLists = yes,
+ strikeThrough = yes,
+ superscripts = yes,
+ subscripts = yes,
+ fancyLists = yes,
+ ]
% Set renderers of the Markdown module.
\definehighlight
@@ -42,7 +49,7 @@
% Typeset the document `example.md` by letting the Markdown package handle
% the conversion internally.
-\markdownInput{./example.md}
+\inputmarkdown{./example.md}
% Typeset the document `example.tex` that we prepared separately using the
% Lua command-line interface and that contains a plain TeX representation