forked from jgm/lunamark
-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Quotation marks in a Markdown file are not always parsed correctly.
Suppose that the file test.md has the contents
"A B"
'A B'and the file test.tex has the contents
\documentclass{article}
\usepackage{markdown}
\begin{document}
\markdownInput{test.md}
\end{document}.
Observed behavior
The Markdown implementation Discount parses test.md as the HTML
<p>“A B”</p>
<p>‘A B’</p>while the Markdown implementation MD4C parses test.md as the HTML
<p>"A B"</p>
<p>'A B'</p>. However, when we typeset test.tex, then test.md is effectively parsed as the HTML
<p>”A B”</p>
<p>’A B’</p>or apparently as the LaTeX
\textquotedblright{}A B\textquotedblright{}
\textquoteright{}A B\textquoteright{}.
Expected behavior
I would have expected for test.md to be parsed as one of the possibilities below:
-
The HTML
<p>“A B”</p> <p>‘A B’</p>
and LaTeX
\textquotedblleft{}A B\textquotedblright{} \textquoteleft{}A B\textquoteright{}
, or
-
The HTML
<p>"A B"</p> <p>'A B'</p>
and the LaTeX
\textquotedbl{}A B\textquotedbl \textquotesingle{}A B\textquotesingle
.
System information
TeX distribution: TeX Live 2025.
TeX version: 3.141592653
LuaTeX version: 1.22.0
XeTeX version: 3.141592653-2.6-0.999997
"markdown" package version: 3.13.0-0-gdd212d58
Operating system: Arch Linux with kernel version 6.18.7-arch1-1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels