-
Notifications
You must be signed in to change notification settings - Fork 91
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
Directly adjacent instances of raw source cause parsing error #115
Comments
I should also add that it would help to report where in the source file the problem was encountered. That might be happening, but if so it is using a system that isn't easy to follow up on (total bytes from start of file?). It might be better to report line numbers at least. |
It did report exactly where the problem was encountered (in byte offsets, which is how MMD "thinks"), and even showed you the exact text at the problem area. But an error report means that I left a particular token type out of the output processing, since in theory there should never be any errors in a MMD document, just things that don't work the user thought they would due to a misunderstanding of the syntax rules. In this case, there is a bug, but it's not what you think. The final But the error message is easily resolved and will be fixed shortly. |
Ah, I think I see what you mean, I hadn't consciously factored in that So the question then becomes, how can one insert a backslash all by itself like that? I should be able to work around having done things that way in the past with a few tweaks to my generator, but just out of curiosity:
Rightly inserts two backslashes into the output. Or for that matter (though it was not what I was trying to do), how can one get a backtick into the LaTeX output, since:
Produces:
|
You use a backslash normally inside code spans. The only thing you can't do (I think) is a backslash immediately before the final backtick -- you can use a space to separate the backslash from the backtick, e.g.:
|
(By normally I mean as you want it to appear in the output.) |
Yes, that's exactly what I mean though, if for some reason you need to terminate the block at a backslash it seems the only way around the problem is to avoid ever having to do so. Probably not too big of a constraint all things considered. It's a bit of an odd case as I had two different operations generating different pieces of code. I can combine their total output effect to avoid this happening. |
See #133 for further discussion on this |
When inserting raw LaTeX using the new marker system for doing so, if two instances of insertion are done back to back then the parser seems to fail to recognise one of the spans:
And for a failing case:
The second example will produce the following output:
The text was updated successfully, but these errors were encountered: