-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Markdown reader doesn't handle hard breaks #416
Comments
I didn't know about that poetry formatted blocks before. 👍 It's a pity that these useful tricks from pandoc are not portable to other markdown dialects and causes glitches, e.g. this leaking backshlashes at GitHub, |
@severak I'm pretty sure your use of backslashes in that particular case is actually wrong. You're combining a two-space thing on empty lines with a backslash and I don't think they make any sense together. Pandoc figures out to do something, but it's document logic is also alien magic compared to most. As long as you're going with something only Pandoc can parse properly it would bake a lot more sense to use the block level syntax: # Title
| Lines of
| Poetry here
|
| Second stanza
| Over the rainbow |
There's a bunch of different things here:
In other terms, it seems to me that this 4-year old issue could be closed. I'll comment later at some point in #1336 regarding the whole progress of the markdown.sile package (I still have a few things under the hood), but as far as line breaks and line blocks go, for fairly good parity with Pandoc, this is it! (As can be seen there, markdown.sile also includes, besides the "native" rendering engine, a way to use Pandoc's JSON AST, where obviously all these features are also supported too) |
Closed via #1610. |
Markdown has a syntax for specifying hard line breaks by ending the line with a
\
. This is ignored by the internal markdown reader and they come out in the output. (See also #413.)Additionally there is a Pandoc flavored extension to markdown that begins poetry formatted blocks (i.e. respect line breaks and initial spaces) with a
|
. That format is likewise ignored.The text was updated successfully, but these errors were encountered: