diff options
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 | 6 | ||||
-rw-r--r-- | macros/generic/markdown/examples/example.md | 18 | ||||
-rw-r--r-- | macros/generic/markdown/examples/latex.tex | 2 |
4 files changed, 28 insertions, 0 deletions
diff --git a/macros/generic/markdown/examples/context-mkii.tex b/macros/generic/markdown/examples/context-mkii.tex index fcd6784eaf..e4f953c9a2 100644 --- a/macros/generic/markdown/examples/context-mkii.tex +++ b/macros/generic/markdown/examples/context-mkii.tex @@ -27,6 +27,8 @@ tableCaptions = yes, taskLists = yes, texMathDollars = yes, + texMathDoubleBackslash = yes, + texMathSingleBackslash = yes, ] % Set renderers of the Markdown module. diff --git a/macros/generic/markdown/examples/context-mkiv.tex b/macros/generic/markdown/examples/context-mkiv.tex index a4b9fd9472..9d485820cf 100644 --- a/macros/generic/markdown/examples/context-mkiv.tex +++ b/macros/generic/markdown/examples/context-mkiv.tex @@ -4,6 +4,10 @@ \setupexternalfigures[location={local,global,default}] % Load the Markdown module. +\startluacode +local kpse = require("kpse") +kpse.set_program_name("luatex") +\stopluacode \usemodule[t][markdown] % Set options of the Markdown module. @@ -27,6 +31,8 @@ tableCaptions = yes, taskLists = yes, texMathDollars = yes, + texMathDoubleBackslash = yes, + texMathSingleBackslash = yes, ] % Set renderers of the Markdown module. diff --git a/macros/generic/markdown/examples/example.md b/macros/generic/markdown/examples/example.md index 16d32368d9..8819ef5b67 100644 --- a/macros/generic/markdown/examples/example.md +++ b/macros/generic/markdown/examples/example.md @@ -177,3 +177,21 @@ $$ x^n + y^n = z^n $$ | even discontinuous | lines + +This is inline and display TeX math created using dollars signs: + +$E=mc^2$ + +$$E=mc^2$$ + +This is inline and display TeX math created using single backslashes: + +\(E=mc^2\) + +\[E=mc^2\] + +This is inline and display TeX math created using double backslashes: + +\\(E=mc^2\\) + +\\[E=mc^2\\] diff --git a/macros/generic/markdown/examples/latex.tex b/macros/generic/markdown/examples/latex.tex index fc7d6a0a2a..44736c61dc 100644 --- a/macros/generic/markdown/examples/latex.tex +++ b/macros/generic/markdown/examples/latex.tex @@ -35,6 +35,8 @@ tableCaptions, taskLists, texMathDollars, + texMathDoubleBackslash, + texMathSingleBackslash, ]{markdown} \begin{markdown*}{hybrid} --- |