Skip to content

Latex quotes get lost if not all-plain/all-emphasised #2645

Closed
klausman opened this Issue · 2 comments

2 participants

@klausman
$ cat t.tex 
“A quote that \textit{makes a point.”}
$ pandoc -f latex -t html < t.tex 
<p>“</p>
$

As far as I can tell, this is behavior is new with pandoc 1.16, 1.15.0.6 did not show this behavior.

(and just in case: no, that "broken" nesting is not broken, it's what western typography does.)

@klausman

Just tested with pandoc-1.15.0.6:

$ pandoc -f latex -t html < t.tex 
<p>“A quote that <em>makes a point.”</em></p>
@jgm
Owner

Culprit is probably c73ae81

@jgm jgm added a commit that closed this issue
@jgm Fixed regression in latex smart quote parsing.
Closes #2645.

In cases where a match was not found for a quote, everything
from the open quote to the end of the paragraph was being dropped.
8611ac5
@jgm jgm closed this in 8611ac5
@c-forster c-forster pushed a commit to c-forster/pandoc that referenced this issue
@jgm Fixed regression in latex smart quote parsing.
Closes #2645.

In cases where a match was not found for a quote, everything
from the open quote to the end of the paragraph was being dropped.
1fca89e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.