summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-02-18 21:05:58 +0000
committerKarl Berry <karl@freefriends.org>2024-02-18 21:05:58 +0000
commit45d62c355885e905db2a729761eb384ec447e931 (patch)
treea80c1c9bd45c98a38855f2ac39f1ac5233862747 /Master/texmf-dist/doc/latex
parentc503d4c5c13af6a3749ec30bfee14cffda84240c (diff)
markdown (18feb24)
git-svn-id: svn://tug.org/texlive/trunk@69962 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex')
-rw-r--r--Master/texmf-dist/doc/latex/markdown/examples/example.md16
-rw-r--r--Master/texmf-dist/doc/latex/markdown/examples/latex-luatex.tex16
-rw-r--r--Master/texmf-dist/doc/latex/markdown/examples/latex-pdftex.tex10
-rw-r--r--Master/texmf-dist/doc/latex/markdown/examples/latex-tex4ht.tex10
-rw-r--r--Master/texmf-dist/doc/latex/markdown/examples/latex-xetex.tex16
5 files changed, 40 insertions, 28 deletions
diff --git a/Master/texmf-dist/doc/latex/markdown/examples/example.md b/Master/texmf-dist/doc/latex/markdown/examples/example.md
index 8819ef5b672..5e5457088ed 100644
--- a/Master/texmf-dist/doc/latex/markdown/examples/example.md
+++ b/Master/texmf-dist/doc/latex/markdown/examples/example.md
@@ -41,9 +41,7 @@ This is a table:
This is a bullet list:
-* The first item of a bullet list
-
- that spans several paragraphs,
+* The first item of a bullet list,
* the second item of a bullet list,
@@ -57,9 +55,7 @@ This is a compact bullet list:
This is an ordered list:
-5. The first item of an ordered list
-
- that spans several paragraphs,
+5. The first item of an ordered list,
6. the second item of an ordered list,
@@ -67,9 +63,7 @@ This is an ordered list:
This is a fancy ordered list:
-e) The first item of an ordered list
-
- that spans several paragraphs,
+e) The first item of an ordered list,
f) the second item of an ordered list,
@@ -77,9 +71,7 @@ g) 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 first item of an ordered list,
#. the second item of an ordered list,
diff --git a/Master/texmf-dist/doc/latex/markdown/examples/latex-luatex.tex b/Master/texmf-dist/doc/latex/markdown/examples/latex-luatex.tex
index 18b16bf7769..9b2e6234080 100644
--- a/Master/texmf-dist/doc/latex/markdown/examples/latex-luatex.tex
+++ b/Master/texmf-dist/doc/latex/markdown/examples/latex-luatex.tex
@@ -1,5 +1,15 @@
\documentclass{book}
\usepackage{polyglossia}
+% work around a bug in polyglossia
+\makeatletter
+\ExplSyntaxOn
+\pretocmd\xpg@set@alias@values{%
+ \prop_if_exist:cF { xpg@alias@keyvals@#1@#4 }
+ { \prop_new:c {xpg@alias@keyvals@#1@#4} }
+}{}{}
+\ExplSyntaxOff
+\makeatother
+% end of workaround
\setmainlanguage{english}
\usepackage{fontspec}
\usepackage{booktabs}
@@ -28,13 +38,13 @@
texMathSingleBackslash,
]{markdown}
% Set the document metadata using a YAML metadata block.
-\begin{markdown*}{hybrid}
+\begin{markdown}[hybrid]
---
title: An Example *Markdown* Document
-author: Vít Novotný
+author: Vít Starý Novotný
date: \today
---
-\end{markdown*}
+\end{markdown}
\begin{document}
% Typeset the document `example.md` by letting the Markdown package handle
% the conversion internally.
diff --git a/Master/texmf-dist/doc/latex/markdown/examples/latex-pdftex.tex b/Master/texmf-dist/doc/latex/markdown/examples/latex-pdftex.tex
index db6cbea8c80..7d188d75f25 100644
--- a/Master/texmf-dist/doc/latex/markdown/examples/latex-pdftex.tex
+++ b/Master/texmf-dist/doc/latex/markdown/examples/latex-pdftex.tex
@@ -29,13 +29,13 @@
texMathSingleBackslash,
]{markdown}
% Set the document metadata using a YAML metadata block.
-\begin{markdown*}{hybrid}
+\begin{markdown}[hybrid]
---
title: An Example *Markdown* Document
-author: Vít Novotný
+author: Vít Starý Novotný
date: \today
---
-\end{markdown*}
+\end{markdown}
\begin{document}
% Typeset the document `example.md` by letting the Markdown package handle
% the conversion internally.
@@ -55,7 +55,7 @@ date: \today
Here are some non-ASCII characters: *ěščřžýáíé*.
\end{markdown}
-\begin{markdown*}{html, hybrid}
+\begin{markdown}[hybrid]
Here is some <b>HTML code</b> mixed *with Markdown*. In \TeX, the HTML code
will be silently ignored, whereas in \TeX 4ht, the HTML code will be passed
through to the output:
@@ -72,5 +72,5 @@ through to the output:
<td>10</td>
</tr>
</table>
-\end{markdown*}
+\end{markdown}
\end{document}
diff --git a/Master/texmf-dist/doc/latex/markdown/examples/latex-tex4ht.tex b/Master/texmf-dist/doc/latex/markdown/examples/latex-tex4ht.tex
index db6cbea8c80..7d188d75f25 100644
--- a/Master/texmf-dist/doc/latex/markdown/examples/latex-tex4ht.tex
+++ b/Master/texmf-dist/doc/latex/markdown/examples/latex-tex4ht.tex
@@ -29,13 +29,13 @@
texMathSingleBackslash,
]{markdown}
% Set the document metadata using a YAML metadata block.
-\begin{markdown*}{hybrid}
+\begin{markdown}[hybrid]
---
title: An Example *Markdown* Document
-author: Vít Novotný
+author: Vít Starý Novotný
date: \today
---
-\end{markdown*}
+\end{markdown}
\begin{document}
% Typeset the document `example.md` by letting the Markdown package handle
% the conversion internally.
@@ -55,7 +55,7 @@ date: \today
Here are some non-ASCII characters: *ěščřžýáíé*.
\end{markdown}
-\begin{markdown*}{html, hybrid}
+\begin{markdown}[hybrid]
Here is some <b>HTML code</b> mixed *with Markdown*. In \TeX, the HTML code
will be silently ignored, whereas in \TeX 4ht, the HTML code will be passed
through to the output:
@@ -72,5 +72,5 @@ through to the output:
<td>10</td>
</tr>
</table>
-\end{markdown*}
+\end{markdown}
\end{document}
diff --git a/Master/texmf-dist/doc/latex/markdown/examples/latex-xetex.tex b/Master/texmf-dist/doc/latex/markdown/examples/latex-xetex.tex
index 18b16bf7769..9b2e6234080 100644
--- a/Master/texmf-dist/doc/latex/markdown/examples/latex-xetex.tex
+++ b/Master/texmf-dist/doc/latex/markdown/examples/latex-xetex.tex
@@ -1,5 +1,15 @@
\documentclass{book}
\usepackage{polyglossia}
+% work around a bug in polyglossia
+\makeatletter
+\ExplSyntaxOn
+\pretocmd\xpg@set@alias@values{%
+ \prop_if_exist:cF { xpg@alias@keyvals@#1@#4 }
+ { \prop_new:c {xpg@alias@keyvals@#1@#4} }
+}{}{}
+\ExplSyntaxOff
+\makeatother
+% end of workaround
\setmainlanguage{english}
\usepackage{fontspec}
\usepackage{booktabs}
@@ -28,13 +38,13 @@
texMathSingleBackslash,
]{markdown}
% Set the document metadata using a YAML metadata block.
-\begin{markdown*}{hybrid}
+\begin{markdown}[hybrid]
---
title: An Example *Markdown* Document
-author: Vít Novotný
+author: Vít Starý Novotný
date: \today
---
-\end{markdown*}
+\end{markdown}
\begin{document}
% Typeset the document `example.md` by letting the Markdown package handle
% the conversion internally.