mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-10 19:37:12 +00:00
4dcb2b6fb6
Prior to this commit the MediaWiki writer always added the display
text for a wiki link:
* [[Help|Help]]
* [[Bubbles|Everyone loves bubbles]]
However the display text in the first example is redundant since
MediaWiki uses the target as the default display text. The result being:
* [[Help]]
* [[Bubbles|Everyone loves bubbles]]
247 B
247 B
Wiki links should have no display text, if their display text matches their target.
% pandoc -f mediawiki -t mediawiki
[[Help]] [[Butter|Butter]] [[Bubbles|Everyone loves bubbles]]
^D
[[Help]] [[Butter]] [[Bubbles|Everyone loves bubbles]]