Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

smart quotes fail with leading dot #494

Closed
lemzwerg opened this Issue · 8 comments

2 participants

@lemzwerg

This input

'.foo'

'foo'

gets converted to this HTML code:

<p>’.foo’</p>
<p>‘foo’</p>

Note the difference in the leading opening quote character. Other output devices are affected similarly, so this is a problem in the parser. I can get the correct result by saying '\.foo', however, I think it shouldn't be necessary since a leading dot is nothing special AFAIK.

@lemzwerg

Forgot to mention: This is with pandoc 1.9.1.2.

@jgm
Owner

since a leading dot is nothing special AFAIK

You don't find a period at the beginning of a word in regular text -- generally only in code. And code should be in backticks: try

'`.foo`'
@lemzwerg
@jgm
Owner
@lemzwerg
@jgm
Owner
@jgm
Owner

I'll document attributes on inline code.

@jgm jgm closed this
@lemzwerg
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.