aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
AgeCommit message (Collapse)AuthorFilesLines
2012-09-22Markdown reader: Fixed link parser to avoid exponential slowdowns.John MacFarlane1-8/+12
Previously the parser would hang on input like this: [[[[[[[[[[[[[[[[[[hi We fixed this by making the link parser parser characters between balanced brackets (skipping brackets in inline code spans), then parsing the result as an inline list. One change is that [hi *there]* bud](/url) is now no longer parsed as a link. But in this respect pandoc behaved differently from most other implementations anyway, so that seems okay. All current tests pass. Added test for this case. Closes #620.
2012-09-22LaTeX reader: Added a 'try' in rawLaTeXBlock.John MacFarlane1-1/+1
This allows the markdown reader to treat '\begin' (not followed by an argument) as a raw string rather than erroring out when it doesn't find a '{'. Closes #622.
2012-09-16RST reader: Small tweaks to raw field lists.John MacFarlane1-3/+2
* Don't allow line breaks in field names. * Strip off initial newline from 'raw' when field body begins on next line.
2012-09-16Merge pull request #596 from dlax/rst-fieldlistsJohn MacFarlane1-2/+2
improvements to rst reader for field lists
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-15HTML reader: Modified htmlTag for fewer false positives.John MacFarlane1-1/+1
A tag must start with `<` followed by `!`,`?`, `/`, or a letter. This makes it more useful in the wikimedia and markdown parsers.
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 MacFarlane2-6/+25
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
2012-09-12More mediawiki reader tests.John MacFarlane1-7/+1
2012-09-12Added some tests for mediawiki reader.John MacFarlane1-4/+0
2012-09-12MediaWiki reader: Updated todo comments.John MacFarlane1-8/+12
2012-09-12MediaWiki reader: Support `<syntaxhighlight>` tag.John MacFarlane1-3/+13
2012-09-12MediaWiki reader: Properly handle :, ::, :::...John MacFarlane1-6/+6
2012-09-12MediaWiki reader: Handle def lists without terms (: lines).John MacFarlane1-1/+2
2012-09-12MediaWiki reader: Improvements to list parsing and HTML tag handling.John MacFarlane1-2/+16
2012-09-12MediaWiki reader: Support skipped level in lists.John MacFarlane1-2/+18
For example: # one # two ### skip! ### skip
2012-09-12MediaWiki reader: Fixed charsInTags parser to use innerText.John MacFarlane1-3/+1
2012-09-12Minor fixes to MediaWiki reader.John MacFarlane1-2/+2
2012-09-12Added basic mediawiki reader.John MacFarlane2-2/+311
Text.Pandoc.Readers.MediaWiki module, tests/mediawiki-reader.{txt,native}.
2012-09-12Export 'nested' in Parsing.John MacFarlane1-12/+0
2012-09-09LaTeX reader: Better error messages for environments.John MacFarlane1-1/+3
Now it should tell you that it was looking for \end{env}, instead of giving "unknown parse error."