You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to preserve line breaks wherever possible in the output file, so I'm using pandoc --wrap=preserve. This works as intended so far with MediaWiki as output format, until I try to use lazy line continuation for my list items in my Markdown input. The problem here is that those line breaks inside the list items get transferred 1:1 to the MediaWiki output, but unfortunately, MediaWiki interprets line breaks in list items as a new paragraph. (Line breaks inside paragraphs are okay.)
For illustration, consider this example, wrapped neatly to 40 characters:
* This is a list item.
* This is a list item in Markdown. It is
continued in the next line.
* It has a sub-item.
* This is the next list item.
A paragraph can span multiple lines
without being broken into pieces.
After $ pandoc --wrap=preserve -t mediawiki /tmp/linebreaks.markdown:
* This is a list item.* This is a list item in Markdown. It is
continued in the next line.
** It has a sub-item.* This is the next list item.
A paragraph can span multiple lines
without being broken into pieces.
The pandoc output is rendered by MediaWiki like this, the list is broken in between:
I would expect that the MediaWiki writer can detect certain cases where the syntax of the output format does not allow line breaking, and suppress line breaks in these cases.
The text was updated successfully, but these errors were encountered:
I want to preserve line breaks wherever possible in the output file, so I'm using
pandoc --wrap=preserve
. This works as intended so far with MediaWiki as output format, until I try to use lazy line continuation for my list items in my Markdown input. The problem here is that those line breaks inside the list items get transferred 1:1 to the MediaWiki output, but unfortunately, MediaWiki interprets line breaks in list items as a new paragraph. (Line breaks inside paragraphs are okay.)For illustration, consider this example, wrapped neatly to 40 characters:
After
$ pandoc --wrap=preserve -t mediawiki /tmp/linebreaks.markdown
:The pandoc output is rendered by MediaWiki like this, the list is broken in between:
I would expect that the MediaWiki writer can detect certain cases where the syntax of the output format does not allow line breaking, and suppress line breaks in these cases.
The text was updated successfully, but these errors were encountered: