-
Notifications
You must be signed in to change notification settings - Fork 45
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
Hard line breaks in block AsciiMath are not preserved #91
Comments
Hey do you think this might be something easy for someone who doesn't know ruby to implement? |
+1 for supporting hard line breaks in native AsciiMath syntax. This is a major pain for my tooling right now, as I ended up going with the approach of translating /r's into separate `` chunks, which means I can't save off a single SVG since they're considered separate blocks. Any ETA on getting a fully supported line break in place? |
@SpyrosRoum This seems relatively straightforward to implement. I'd be happy to mentor you if you need assistance. |
@SpyrosRoum @mojavelinux Thank you both for dedicating your time to this. @mojavelinux Thank you for being so welcoming and helpful. Has any progress been made on this front? I ran into this on:
Edit: |
It seems this problem is not limited to AsciiMath. |
AsciiMath blocks require special line handling. You can find the logic here: https://github.com/asciidoctor/asciidoctor/blob/dd843d59b1e49f29d68386bfdf0438ce11b42577/lib/asciidoctor/converter/html5.rb#L697
The rules are as follows:
\
should become a hard line break2 & 3 are not honored.
See asciidoctor/asciidoctor#2497 (comment) for the specification and examples.
The text was updated successfully, but these errors were encountered: