summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/markdown/examples/latex-xetex.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/markdown/examples/latex-xetex.tex')
-rw-r--r--Master/texmf-dist/doc/latex/markdown/examples/latex-xetex.tex16
1 files changed, 13 insertions, 3 deletions
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.