summaryrefslogtreecommitdiff
path: root/macros/generic/markdown/examples/latex-luatex.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/generic/markdown/examples/latex-luatex.tex')
-rw-r--r--macros/generic/markdown/examples/latex-luatex.tex16
1 files changed, 13 insertions, 3 deletions
diff --git a/macros/generic/markdown/examples/latex-luatex.tex b/macros/generic/markdown/examples/latex-luatex.tex
index 18b16bf776..9b2e623408 100644
--- a/macros/generic/markdown/examples/latex-luatex.tex
+++ b/macros/generic/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.