mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 13:54:44 +00:00
Multi-line table entry or way to ignore line break. #321
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @qqkookie on GitHub (Aug 13, 2019).
For example, table with three rows and two columns each.
I like to break "This is very very loooo...ng entry" into two source line.
This does not mean that it will break line in display (like <BR>) Just markdown parser will ignore newline after the last "very" and continue accept next line as part of the table entry. This is more consistent behavior for markdown format which largely treats single line break as space in source.
This can be done by adding "line continuation" back slash (\) as character escape or some other mean like enclosing the multi-line entry or whole the table itself with bracket ({{ entry... }}) or any similar way.
TRDR: There must be some way to accept long table entry spreaded in 2 lines as single table entry.
@xoofx commented on GitHub (Oct 24, 2019):
afaik, none of the existing markdown parser table implementation support this, so we won't try to support this for now.
@schaveyt commented on GitHub (Oct 22, 2021):
@xoofx Please reconsider.
Pandoc does, indeed, have the multiline-table extension and its a god send. Without this pandoc feature, it is unlikely we would have been able to convince our technical writers to switch from MS Word to markdown/pandoc.
@xoofx commented on GitHub (Oct 22, 2021):
I have no sparetime dedicated to implement new features for markdig and GitHub doesn't even support this. Folks that would start to author files with such a rule on GitHub would get something like this:
which is really not desirable. But anyway, PR welcome if someone has the courage to implement such a feature (it would have to be optional in that case).
@schaveyt commented on GitHub (Oct 22, 2021):
I don't understand. Correct, GitHub does not support this format and it would be considered an "additional extension". Is this what you are trying to say?