summaryrefslogtreecommitdiff
path: root/macros/generic/markdown/examples
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-04-04 03:01:33 +0000
committerNorbert Preining <norbert@preining.info>2023-04-04 03:01:33 +0000
commite9f267fd4c8414d6146c5fee0dbe459613dd0f3b (patch)
tree83fb57a85aee532d8ccb344a7a808a446c31054d /macros/generic/markdown/examples
parent3b4a242af88203c2f3f551d46161bdd037c0d127 (diff)
CTAN sync 202304040301
Diffstat (limited to 'macros/generic/markdown/examples')
-rw-r--r--macros/generic/markdown/examples/context-mkii.tex2
-rw-r--r--macros/generic/markdown/examples/context-mkiv.tex6
-rw-r--r--macros/generic/markdown/examples/example.md18
-rw-r--r--macros/generic/markdown/examples/latex.tex2
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}
---