pandoc/test/command/7808.md
Jesse Hathaway 4dcb2b6fb6 MediaWiki writer: Remove redundant display text for wiki links
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]]
2022-01-06 15:05:39 -08:00

8 lines
247 B
Markdown

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]]
```