summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/markdown/examples
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/markdown/examples')
-rw-r--r--Master/texmf-dist/doc/latex/markdown/examples/example.md121
-rw-r--r--Master/texmf-dist/doc/latex/markdown/examples/latex.tex31
-rw-r--r--Master/texmf-dist/doc/latex/markdown/examples/scientists.csv4
3 files changed, 156 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/markdown/examples/example.md b/Master/texmf-dist/doc/latex/markdown/examples/example.md
new file mode 100644
index 00000000000..73f5ab9c26a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/markdown/examples/example.md
@@ -0,0 +1,121 @@
+This is an H1
+=============
+
+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.
+
+***
+
+This is inline `code`. This is a [link](http://google.cz "Google"). _This is an *emphasized* span of text_. __This is a **strongly emphasized** span of text__.
+
+ ![example image](example-image.pdf "An example image from Martin Scharrer's mwe package")
+
+ /scientists.csv (The great minds of the 19th century rendered via a content block)
+
+This is a fenced code block:
+
+``` latex
+\documentclass{article}
+\begin{document}
+ Hello world!
+\end{document}
+```
+
+This is 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.
+
+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.
+
+This is 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.
+
+This is an ordered list using hash enumerators:
+
+ #. 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.
+
+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.
+
+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.
+
+This is a definition list:
+
+Term 1
+
+: Definition 1
+
+*Term 2*
+
+: Definition 2
+
+ Some code, part of Definition 2
+
+ Third paragraph of Definition 2.
+
+: Definition 3
+
+This is a compact definition list:
+
+Term 1
+: Definition 1
+*Term 2*
+: Definition 2
+: Definition 3
+
+This is a block quote:
+
+> This is the first level of quoting.
+>
+> > This is nested blockquote.
+>
+> Back to the first level.
+
+Here is a footnote reference[^1] and another.[^longnote]
+Here is an inline note.^[Inlines notes are easier to
+write, since you don't have to pick an identifier and
+move down to type the note.]
+
+[^1]: Here is the footnote.
+
+[^longnote]: Here's one with multiple blocks.
+
+ Subsequent paragraphs are indented to show that they
+belong to the previous footnote.
+
+ Some code
+
+ The whole paragraph can be indented, or just the first
+ line. In this way, multi-paragraph footnotes work like
+ multi-paragraph list items.
diff --git a/Master/texmf-dist/doc/latex/markdown/examples/latex.tex b/Master/texmf-dist/doc/latex/markdown/examples/latex.tex
new file mode 100644
index 00000000000..c02aedbaaa0
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/markdown/examples/latex.tex
@@ -0,0 +1,31 @@
+\documentclass{book}
+\usepackage{ifxetex,ifluatex}
+\ifxetex
+ \usepackage{polyglossia}
+ \setmainlanguage{english}
+ \usepackage{fontspec}
+\else\ifluatex
+ \usepackage{polyglossia}
+ \setmainlanguage{english}
+ \usepackage{fontspec}
+\else
+ \usepackage[english]{babel}
+ \usepackage[utf8]{inputenc}
+ \usepackage[T1]{fontenc}
+ \usepackage{lmodern}
+\fi\fi
+\usepackage[
+ hashEnumerators,
+ definitionLists,
+ footnotes,
+ inlineFootnotes,
+ smartEllipses,
+ fencedCode,
+ contentBlocks
+]{markdown}
+\begin{document}
+ \markdownInput{example.md}
+ \begin{markdown}
+Here are some non-ASCII characters: *ěščřžýáíé*.
+ \end{markdown}
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/markdown/examples/scientists.csv b/Master/texmf-dist/doc/latex/markdown/examples/scientists.csv
new file mode 100644
index 00000000000..dee7830edf8
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/markdown/examples/scientists.csv
@@ -0,0 +1,4 @@
+Name,Surname,Born
+Albert,Einstein,1879
+Marie,Curie,1867
+Thomas,Edison,1847