mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 21:25:48 +00:00
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]]
9 lines
247 B
Markdown
9 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]]
|
|
```
|