aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/MediaWiki.hs
AgeCommit message (Collapse)AuthorFilesLines
2014-01-22Fixed mediawiki ordered list parsing.John MacFarlane1-10/+15
Closes #1122.
2013-12-19HLint: use fromMaybeHenry de Valence1-3/+4
Replace uses of `maybe x id` with `fromMaybe x`.
2013-11-24MediaWiki reader: Accept image links in more languagesJaime Marquínez Ferrándiz1-1/+5
In some of the Wikipedia versions the local version of 'File' is used (for example 'Archivo' in Spanish)
2013-11-17MediaWiki reader: Add automatic header identifiers.John MacFarlane1-2/+20
2013-10-18MediaWiki reader: Trim contents of `<math>` tags.John MacFarlane1-5/+5
Otherwise we get problems when converting to markdown. Closes #1027.
2013-09-11Mediawiki: Parse an image + caption in a para by itself as a figure.John MacFarlane1-2/+2
2013-09-07MedaWiki reader: Implement some mathjax extensions.John MacFarlane1-4/+15
* `:<math>` for display math * `\(..\)` for inline math * `\[..\]` for display math We omit the `$` forms as the heuristics are harder.
2013-09-06MediaWiki reader: Allow Image: for images.John MacFarlane1-1/+1
Closes #971.
2013-08-10Use walk, walkM in place of bottomUp, bottomUpM when possible.John MacFarlane1-2/+2
They are significantly faster.
2013-05-20MediaWiki reader: Ignore attributes on headers.John MacFarlane1-4/+3
2013-05-20MediaWiki reader: Skip attributes on table rows.John MacFarlane1-1/+2
Previously we just crashed if rows had attributes, now we ignore them.
2013-03-28Mediawiki reader: Fixed | links inside table cells.John MacFarlane1-10/+8
Improved attribute parsing.
2013-03-28Mediawiki reader: Fixed last commit.John MacFarlane1-1/+1
2013-03-28MediaWiki reader: Correctly handle indented preformatted textJohn MacFarlane1-5/+17
without preceding or following blank line.
2013-03-27mediawiki reader: allow space before table rows.John MacFarlane1-4/+5
2013-01-27Mediawiki reader: Don't require blanklines after tables.Jeff Runningen1-1/+1
2013-01-25Use anyLine everywhere instead of 'manyTill anyChar newline'.John MacFarlane1-3/+3
2013-01-06Mediawiki reader: interpret HTML in verbatim contexts as text.John MacFarlane1-2/+1
Thanks to Jeff Runningen for reporting that mediawiki works this way.
2012-09-15MediaWiki reader: Allow table in table cell.John MacFarlane1-1/+3
2012-09-15MediaWiki reader: Added smart doublequotes with -S option.John MacFarlane1-2/+10
Also disallow ' in the "trail" of an internal link; allowing it causes bugs with `'''[[Link]]'''`.
2012-09-15MediaWiki parser: Improved endline to stop bad breaks.John MacFarlane1-2/+0
2012-09-15MediaWiki reader: Allow def list item with just a term.John MacFarlane1-1/+4
2012-09-15MediaWiki reader: Properly handle templates in list items.John MacFarlane1-4/+15
2012-09-15MediaWiki reader: Handle ref tags as footnotes.John MacFarlane1-0/+1
2012-09-15MediaWiki reader: Better parsing of templates.John MacFarlane1-9/+10
2012-09-15MediaWiki reader: Treat "references" tag as block.John MacFarlane1-5/+2
2012-09-15MediaWiki reader: Interpret width attribute on table columns.John MacFarlane1-14/+33
2012-09-15MediaWiki reader: Got alignments working.John MacFarlane1-6/+12
They only work on headers, because pandoc forces same alignment for all cells in a column.
2012-09-15MediaWiki reader: Misc fixes, put category links at end.John MacFarlane1-22/+41
2012-09-15MediaWiki reader: Skip inline templates, handle <source>.John MacFarlane1-5/+10
2012-09-15MediaWiki reader: Parse styles on table cells.John MacFarlane1-0/+6
2012-09-15MediaWiki reader: Parse styles after '{|' table start.John MacFarlane1-1/+18
2012-09-14MediaWiki reader: || between table cells.John MacFarlane1-9/+10
2012-09-14MediaWiki reader: Improved table parsing.John MacFarlane1-10/+11
2012-09-14MediaWiki reader: Table improvements, added simple table tests.John MacFarlane1-4/+9
2012-09-14MediaWiki reader: Support for basic mediawiki tables.John MacFarlane1-5/+52
2012-09-13MediaWiki reader: Images.John MacFarlane1-3/+25
2012-09-13MediaWiki reader: internal links.John MacFarlane1-4/+4
2012-09-13MediaWiki reader: Implemented basic internal links.John MacFarlane1-41/+62
Including word-ending links and the "pipe trick."
2012-09-13MediaWiki reader: Implemented numbered external links.John MacFarlane1-8/+12
2012-09-13MediaWiki reader: Use MWState instead of ParserState.John MacFarlane1-5/+24
2012-09-13MediaWiki reader: Ignore `<gallery>` tags.John MacFarlane1-5/+6
2012-09-13MediaWiki reader: Support HTML lists.John MacFarlane1-12/+29
2012-09-13MediaWiki reader: Handle templates, variables as raw mediawiki.John MacFarlane1-5/+14
Also check for column 1 in preformatted text.
2012-09-13MediaWiki reader: Parse templates etc. as raw mediawiki.John MacFarlane1-4/+10
They can be postprocessed with a pandoc script.
2012-09-13MediaWiki reader: Improved efficiency with raw html tags.John MacFarlane1-78/+59
Parse one tag, then use a case statement.
2012-09-12MediaWiki reader: Added comment.John MacFarlane1-0/+2
2012-09-12MediaWiki reader: preformatted blocks and tests.John MacFarlane1-11/+28
2012-09-12MediaWiki reader: Support `<math>` tag.John MacFarlane1-1/+4
2012-09-12Added tests for mediawiki lists.John MacFarlane1-2/+3