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

TeX isn't parseable #5

Open
JoelOtter opened this issue May 18, 2016 · 3 comments
Open

TeX isn't parseable #5

JoelOtter opened this issue May 18, 2016 · 3 comments

Comments

@JoelOtter
Copy link

As part of what I do with Markdown, I have to parse the Markdown itself, token by token. For text, I normally just use the token's content.

However, in TeX code within Markdown, parsing breaks due to backslashes in the TeX being interpreted as escapes. For example, the code

$1+1 \, = 2$

Will be parsed as

$1 + 1 , = 2$

Producing a comma in the rendered TeX, when \, should be a 'small space'.

I'm not sure if this is even within scope of this package, but if this plugin could adjust the parsing so that escapes don't break the TeX that'd be amazing.

@waylonflinn
Copy link
Owner

Good catch, thanks! Hopefully #4 will get us close to a fix for this.

@waylonflinn
Copy link
Owner

If you'll add an example of expected behaviour, I'll turn it into a test case.

@JoelOtter
Copy link
Author

I actually don't need this any more - d'you want me to make a PR with a test in it anyway? :) Thanks for this library!

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