LuaLaTeX is not inserting em dashes unless there is space around the triple dash.
It works fine when using a unicode em dash, or explicitly using the \textemdash
macro.
Here is a MWE:
\documentclass{article}
\begin{document}
\begin{enumerate}
\item en--dash
\item em---dash
\item em --- dash space
\end{enumerate}
\begin{enumerate}
\item en–dash unicode
\item em—dash unicode
\item em — dash space unicode
\end{enumerate}
\begin{enumerate}
\item en\textendash{}dash macro
\item em\textemdash{}dash macro
\item em \textemdash{} dash space macro
\end{enumerate}
\end{document}
Which produces:
Compiled using LuaTeX, Version 1.07.0 (TeX Live 2018)
The question is:
I would like to know why em dash ligatures without surrounding spaces are not rendered as em dashes in the PDF output. It seems like a bug to me. how can I fix it?
\item em---dash---twice
. Apparently when a word is surrounded by two em-dashes, the first one is rendered as an en-dash, while the second shows up normally.