[Markdown -> HTML] Escaped newlines insert the backslash into rendered document #10672
Replies: 5 comments 11 replies
-
Pipe table cells cannot be split in this way. They are confined to a single line. |
Beta Was this translation helpful? Give feedback.
-
But you can do this, right (backslash-newline without a pipe at the start of the next line)? Will this continue to work?
|
Beta Was this translation helpful? Give feedback.
-
For Posterity, what I've wound up using is this Lua Filter for my prose-heavy table: https://github.com/pandoc-ext/list-table |
Beta Was this translation helpful? Give feedback.
-
Just checking that we're on the same page here, the above minimal example:
gives this output (with a literal backslash in the HTML):
but getting rid of the pipe at the start of the last line:
gives this output (with a
I do understand that the manual states that pipe table cells can't contain line breaks, but I had assumed that support for backslash-newline in this context was deliberate. Not so? (If not so, then fine. I am not claiming that this is good practice!) |
Beta Was this translation helpful? Give feedback.
-
Thanks. Do you think it's worth stating (in the manual) that the escaped_line_breaks extension isn't supported within pipe table cells? |
Beta Was this translation helpful? Give feedback.
-
I'm trying to break up a pipe table across multiple lines because the table is too big to reasonably format as a true ascii-art table. The docs say that you can escape a newline by placing a backslash at the end of the line, and that works to keep the table formatted, but also places a backslash in the resulting table cells. I feel like this might be a bug, or I'm missing something because I'm not sure why you'd want to escape a newline and keep the escaping character.
Example:
Result:
Beta Was this translation helpful? Give feedback.
All reactions