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 found that the bold and italics tags in Mediawiki are not recognized if the text they envelop start or end with whitespace.
So:
pandoc -f mediawiki -t html <<< "'''Should be bold '''"
<p>'''Should be bold '''</p>
pandoc -f mediawiki -t html <<< "''' Should be bold'''"
<p><em>' Should be bold</em>'</p>
pandoc -f mediawiki -t html <<< "'''Should be bold'''"
<p><strong>Should be bold</strong></p>
I've seen this quite often in Mediawikis in the wild.
The text was updated successfully, but these errors were encountered:
We have a check for a nonspace in the code. I'm not sure why it's there, but very possibly someone used a parser for another format as a base in constructing this. We could take it out, if you can confirm that mediawiki doesn't care about the space after the opening delimiter.
At least if I try in their test editor here (using the Source mode, not Visual), it correctly formats the word regardless of leading or trailing space.
Pandoc 2.11.2
I found that the bold and italics tags in Mediawiki are not recognized if the text they envelop start or end with whitespace.
So:
I've seen this quite often in Mediawikis in the wild.
The text was updated successfully, but these errors were encountered: