aboutsummaryrefslogtreecommitdiff
path: root/test/writer.mediawiki
AgeCommit message (Collapse)AuthorFilesLines
2021-11-19MediaWiki writer: fix code for generating spans for header IDs.John MacFarlane1-0/+31
We need to generate a span when the header's ID doesn't match the one MediaWiki would generate automatically. But MediaWiki's generation scheme is different from ours (it uses uppercase letters, and `_` instead of `-`, for example). This means that in going from markdown -> mediawiki, we'll now get spans before almost every heading, unless explicit identifiers are used that correspond to the ones MediaWiki auto-generates. This is uglier output but it's necessary for internal links to work properly. See #7697.
2019-02-25Shared.compactify: Avoid mixed lists.John MacFarlane1-1/+1
This improves on the original fix to #5285 by preventing other mixed lists (lists with a mix of Plain and Para elements) that were allowed given the original fix.
2018-11-27MediaWiki writer: fix caption, use 'thumb' instead of 'frame'.John MacFarlane1-1/+1
Captions used to have the word 'caption' prepended; this has been removed. Also, 'thumb' is used instead of 'frame' to allow images to be resized. Closes #5105.
2017-05-25Added `spaced_reference_links` extension.John MacFarlane1-4/+0
This is now the default for pandoc's Markdown. It allows whitespace between the two parts of a reference link: e.g. [a] [b] [b]: url This is now forbidden by default. Closes #2602.
2017-02-21MediaWiki writer: Remove newline before `</ref>`.John MacFarlane1-7/+3
Closes #2652.
2017-02-21MediaWiki writer: add display attribute on `<math>` tags.John MacFarlane1-7/+7
This allows display math to be rendered properly. Closes #3452.
2017-02-04Moved tests/ -> test/.John MacFarlane1-0/+653