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
Fix bug: handle "|" in $$..$$ or <code>..</code> #23
Conversation
"|" in $$..$$ or <code>..</code> should be treated verbatim.
+1 |
Thanks for the pull request but it does not pass the tests under Ruby 1.8 due to invalid regexp syntax. If you fix the errors when run under Ruby 1.8 I could merge it. You can test by installing various Ruby versions via rvm and then use the |
Can this be looked at again and considered for merging? Does kramdown still aim to support 1.8 despite it reaching end of life? |
For kramdown 1.x, support for Ruby 1.8 is still supported (many enterprise Linux systems have very old Ruby versions...). However, with kramdown 2.x support for 1.8 will be dropped (and probably for 1.9, too). |
Thanks again for this pull request. However, since it does not resolve the problem in a backwards compatible way and there are still other issues with pipe symbols and tables (e.g. #135) that won't be fixed by this, I will recommend using the The first two examples of lines that should be paragraphs instead of tables have been fixed by 2896c32. I haven't tested this but also note that this pull request might not solve the problem of statements like:
However, when using |
I think closing this is disappointing. Placing the fix in a new major version release with no 1.8 support is plenty possible, considering that 1.8 MRI is receiving no new official patches, including security fixes. Just because this PR doesn't fix all pipe issues doesn't make it closable IMO. |
The next major release will most probably have a change in the table processing code, requiring that a table line starts with a pipe. So this would be a non-issue then. The problem is that this addresses just some bugs with the table parsing code and very specifically only with inline math statements. There would probably be many other necessary adjustments in regard to other parsing functionality. The fix of using I also just don't have that much time currently to investigate, pull requests are surely welcome! |
Personally I think a real bug minimisation is better than an imagined perfect bug eradication, but yes I understand what you're saying. Hopefully the "most probably" change makes it to the next major release, good to hear! |
Seems like this is a recurring issue especially for fans of conditional probability ^^. I don't see how in the absence of anything else a fix addressing just some of the bugs is not worth merging - "because |
I get your message but this pull request doesn't solve the problem in a backwards-compatible way, so it can't be merged. |
Given the following input kramdown input:
Previously, kramdown would give the wrong output:
After the bugfix, the output is: