summaryrefslogtreecommitdiff
path: root/macros/generic/markdown/examples
diff options
context:
space:
mode:
Diffstat (limited to 'macros/generic/markdown/examples')
-rw-r--r--macros/generic/markdown/examples/context.tex1
-rw-r--r--macros/generic/markdown/examples/example.md70
-rw-r--r--macros/generic/markdown/examples/latex.tex9
3 files changed, 51 insertions, 29 deletions
diff --git a/macros/generic/markdown/examples/context.tex b/macros/generic/markdown/examples/context.tex
index 7ed432344a..a049d9f81c 100644
--- a/macros/generic/markdown/examples/context.tex
+++ b/macros/generic/markdown/examples/context.tex
@@ -12,6 +12,7 @@
\def\markdownOptionContentBlocks{true}
\def\markdownOptionPipeTables{true}
\def\markdownOptionTableCaptions{true}
+\def\markdownOptionTaskLists{true}
\definetyping [latex]
\setuptyping [latex] [option=TEX]
\starttext
diff --git a/macros/generic/markdown/examples/example.md b/macros/generic/markdown/examples/example.md
index f0be0cddfa..2841cd156f 100644
--- a/macros/generic/markdown/examples/example.md
+++ b/macros/generic/markdown/examples/example.md
@@ -1,12 +1,13 @@
-This is an H1
-=============
+# This is an H1
-This is an H2
--------------
+## This is an H2
### This is an H3
+
#### This is an H4
+
##### This is an H5
+
###### This is an H6
This is a text paragraph containing an ellipsis ... and followed by a horizontal rule.
@@ -40,45 +41,56 @@ This is a table:
This is a bullet list:
- * The first item of a bullet list
+* The first item of a bullet list
- that spans several paragraphs,
- * the second item of a bullet list,
- * the third item of a bullet list.
+ that spans several paragraphs,
+* the second item of a bullet list,
+* the third item of a bullet list.
This is a compact bullet list:
- * The first item of a bullet list,
- * the second item of a bullet list,
- * the third item of a bullet list.
+* The first item of a bullet list,
+* the second item of a bullet list,
+* the third item of a bullet list.
This is an ordered list:
- 5. The first item of an ordered list
+5. The first item of an ordered list
- that spans several paragraphs,
- 6. the second item of an ordered list,
- 7. the third item of an ordered list.
+ that spans several paragraphs,
+6. the second item of an ordered list,
+7. the third item of an ordered list.
This is an ordered list using hash enumerators:
- #. The first item of an ordered list
+#. The first item of an ordered list
- that spans several paragraphs,
- #. the second item of an ordered list,
- #. the third item of an ordered list.
+ that spans several paragraphs,
+#. the second item of an ordered list,
+#. the third item of an ordered list.
This is a compact ordered list:
- 5. The first item of an ordered list,
- 6. the second item of an ordered list,
- 7. the third item of an ordered list.
+5. The first item of an ordered list,
+6. the second item of an ordered list,
+7. the third item of an ordered list.
This is a compact ordered list using hash enumerators:
- #. The first item of an ordered list,
- #. the second item of an ordered list,
- #. the third item of an ordered list.
+#. The first item of an ordered list,
+#. the second item of an ordered list,
+#. the third item of an ordered list.
+
+This is a task list:
+
+* [ ] Some unfinished task
+* [/] Some half-finished task
+* [X] Some finished task
+* An item of an unordered list
+ #. [ ] Some unfinished subtask
+ #. [.] Some half-finished subtask
+ #. [x] Some finished subtask
+ #. An item of an ordered list
This is a definition list:
@@ -86,12 +98,12 @@ Term 1
: Definition 1
-*Term 2*
+Term 2
: Definition 2
-
+
Some code, part of Definition 2
-
+
Third paragraph of Definition 2.
: Definition 3
@@ -100,7 +112,7 @@ This is a compact definition list:
Term 1
: Definition 1
-*Term 2*
+Term 2
: Definition 2
: Definition 3
diff --git a/macros/generic/markdown/examples/latex.tex b/macros/generic/markdown/examples/latex.tex
index 07ebe631f9..cf820dfa36 100644
--- a/macros/generic/markdown/examples/latex.tex
+++ b/macros/generic/markdown/examples/latex.tex
@@ -20,12 +20,21 @@
definitionLists,
footnotes,
inlineFootnotes,
+ jekyllData,
smartEllipses,
fencedCode,
contentBlocks,
pipeTables,
tableCaptions,
+ taskLists,
]{markdown}
+\begin{markdown*}{hybrid}
+---
+title: An Example *Markdown* Document
+author: Vít Novotný
+date: \today
+---
+\end{markdown*}
\begin{document}
% Typeset the document `example.md` by letting the Markdown package handle
% the conversion internally.