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

Latex: '#' in a backtick section isn't properly escaped #110

Closed
jlargentaye opened this issue Feb 3, 2018 · 2 comments
Closed

Latex: '#' in a backtick section isn't properly escaped #110

jlargentaye opened this issue Feb 3, 2018 · 2 comments

Comments

@jlargentaye
Copy link

In multimarkdown 6.2.3, the following input markdown:

I don't #define myself that way

`but what if I #define this?`

Generates the following Latex output:

I don't \#define myself that way

\texttt{but what if I #define this?}

Note that the the # (hash) sign from the first line is backslash-escaped in the output, but not the one in the backticked line. The latter causes a latex error: Illegal parameter number in definition of \reserved@a.

FWIW, MMD4 properly handled this case

@jlargentaye
Copy link
Author

Same for $ character in backticks

@ghost
Copy link

ghost commented Feb 4, 2018

See also #108

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

2 participants