Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown writer adds improper escaping to "a)" at beginning of paragraph #516

Closed
jgm opened this issue May 19, 2012 · 0 comments
Closed

Comments

@jgm
Copy link
Owner

jgm commented May 19, 2012

The culprit is a very old commit, a70c2b2. The markdown writer looks to see if the paragraph begins with something that might be mistakenly interpreted as an ordered list, and escapes it with a backslash. The problem is that the markdown reader interprets \a) as a latex command followed by ), and only ) appears if we again read the markdown that we wrote.

One solution would be to escape all periods and parens, but that is drastic and ugly.

Better: look in the inline list before conversion. Still a bit tricky.

Test case:

pandoc -t markdown
a\) one

b\) two
^D
\a) one

\b) two
jgm pushed a commit that referenced this issue May 20, 2012
…ker.

This addresses #516, but in a rather hackish way.  There ought to
be a better solution.
@jgm jgm closed this as completed Jun 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant