Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2013-01-13 | Moved lineBlockLines to Parsing. | John MacFarlane | 1 | -12/+1 | |
This will be used by both RST and markdown readers. | |||||
2013-01-13 | RST reader: Refactored line block parser. | John MacFarlane | 1 | -14/+10 | |
2013-01-13 | RST reader: Line block improvements. | John MacFarlane | 1 | -3/+8 | |
* Use nonbreaking spaces for initial indent (otherwise lost in HTML and LaTeX). * Allow multiple paragraphs in a single line block. | |||||
2013-01-09 | Added Attr field to Header. | John MacFarlane | 1 | -6/+6 | |
Previously header ids were autogenerated by the writers. Now they are generated (unless supplied explicitly) in the markdown parser, if the `header_identifiers` extension is selected. In addition, the textile reader now supports id attributes on headers. | |||||
2012-10-06 | RST reader: Don't create empty definition list for metadata field lists. | John MacFarlane | 1 | -3/+3 | |
Previously a field list consisting only of metadata fields (author, title, date) would be parsed as an empty DefinitionList, which is not legal in LaTeX and not needed in any format. This patch fixes the problem, which I learned of from http://stackoverflow.com/questions/12762767/modify-variable-in-rst-with-pandoc. | |||||
2012-09-30 | RST reader: Removed 'plain' in blocks, since 'para' includes it. | John MacFarlane | 1 | -1/+0 | |
2012-09-30 | RST reader: Consolidate super/subscript, math into interpretedRole. | John MacFarlane | 1 | -35/+26 | |
2012-09-30 | RST reader: Renamed 'image' to 'subst', since it now handles more. | John MacFarlane | 1 | -4/+3 | |
2012-09-30 | Ignore unknown interpreted roles. | John MacFarlane | 1 | -3/+12 | |
The contents are treated as rst, not literal, which will sometimes be wrong. | |||||
2012-09-30 | RST reader: Removed requirement that directives begin at left margin. | John MacFarlane | 1 | -3/+0 | |
This was (correctly) not in earlier releases; docutils doesn't make the requirement. | |||||
2012-09-30 | RST reader: Require whitespace after field list field names. | John MacFarlane | 1 | -1/+1 | |
2012-09-30 | RST reader: Consolidated rawBlock into directive. | John MacFarlane | 1 | -15/+1 | |
2012-09-30 | RST reader: Handle replace:: and unicode:: substitutions. | John MacFarlane | 1 | -8/+77 | |
2012-09-29 | RST reader: Make directive labels case-insensitive. | John MacFarlane | 1 | -1/+3 | |
2012-09-29 | RST reader: Folded figureBlock into directive. | John MacFarlane | 1 | -14/+10 | |
2012-09-29 | RST reader: Made comments a separate parser. | John MacFarlane | 1 | -6/+17 | |
2012-09-29 | RST reader: Folded image block handling into directive. | John MacFarlane | 1 | -41/+36 | |
2012-09-29 | RST reader: Folded code block parsers into directive. | John MacFarlane | 1 | -18/+15 | |
2012-09-29 | RST reader: Folded default-role parser into directive. | John MacFarlane | 1 | -21/+8 | |
2012-09-29 | Renamed removedLeadingTrailingSpace to trim. | John MacFarlane | 1 | -11/+11 | |
Also removeLeadingSpace to triml, removeTrailingSpace to trimr. | |||||
2012-09-29 | RST reader: Consolidated math block parsers into directive. | John MacFarlane | 1 | -29/+9 | |
2012-09-29 | RST reader: Refactored directive parser. | John MacFarlane | 1 | -83/+105 | |
We now also hander container, compound, epigraph, rubric, highligts, pull-quote. | |||||
2012-09-28 | RST reader: Support ".. code::". | John MacFarlane | 1 | -1/+5 | |
2012-09-28 | RST reader: Combine para/plain. | John MacFarlane | 1 | -9/+10 | |
2012-09-28 | RST reader: Made para parser slightly more efficient. | John MacFarlane | 1 | -12/+19 | |
2012-09-27 | RST reader: Use Text.Pandoc.Builder. | John MacFarlane | 1 | -174/+180 | |
This will give us more flexibility in the future. It also gives built-in normalization. Performance slightly better. | |||||
2012-09-27 | RST reader: Support :target: on image substitutions. | John MacFarlane | 1 | -26/+26 | |
2012-09-27 | Added stateSubstitutions to ParserState, use for RST substitutions. | John MacFarlane | 1 | -12/+18 | |
2012-09-26 | RST reader: Support :target: on .. image:: blocks. | John MacFarlane | 1 | -4/+8 | |
Still not supported on substitution definitions. | |||||
2012-09-16 | RST reader: Small tweaks to raw field lists. | John MacFarlane | 1 | -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-16 | Merge pull request #596 from dlax/rst-fieldlists | John MacFarlane | 1 | -2/+2 | |
improvements to rst reader for field lists | |||||
2012-09-08 | RST reader: Allow dashes as separator in simple tables. | John MacFarlane | 1 | -1/+1 | |
Closes #555. | |||||
2012-08-29 | Allow any char but ':' in names of field lists in RST reader | Denis Laxalde | 1 | -1/+1 | |
2012-08-29 | Fix RST reader for field lists items with body beginning after a new line | Denis Laxalde | 1 | -1/+1 | |
2012-08-08 | Changes to literate haskell options. | John MacFarlane | 1 | -1/+1 | |
- Removed writerLiterateHaskell from WriterOptions. - Removed readerLiterateHaskell from ReaderOptions. - Added Ext_literate_haskell to Extensions. Test for this instead of the above. - Removed failUnlessLHS from Shared. Note: At this point, +lhs and .lhs extension no longer has any effect. Need to fix. | |||||
2012-08-01 | Parsing: removed duplication of Key and Key'. | John MacFarlane | 1 | -14/+19 | |
Now we just use the former Key' (string contents), renamed Key. lookupKeySrc and fromKey are no longer eport. Key', toKey' and KeyTable' have become Key, toKey, and KeyTable. | |||||
2012-08-01 | Major rewrite of markdown reader. | John MacFarlane | 1 | -2/+2 | |
* Use Builder's Inlines/Blocks instead of lists. * Return values in the reader monad, which are then run (at the end of parsing) against the final parser state. This allows links, notes, and example numbers to be resolved without a second parser pass. * An effect of using Builder is that everything is normalized automatically. * New exports from Text.Pandoc.Parsing: widthsFromIndices, NoteTable', KeyTable', Key', toKey', withQuoteContext, singleQuoteStart, singleQuoteEnd, doubleQuoteStart, doubleQuoteEnd, ellipses, apostrophe, dash * Updated opendocument tests. * Don't derive Show for ParserState. * Benchmarks: markdown reader takes 82% of the time it took before. Markdown writer takes 92% of the time (here the speedup is probably due to the fact that everything is normalized by default). | |||||
2012-07-26 | Fixed whitespace errors. | John MacFarlane | 1 | -26/+26 | |
2012-07-25 | Changed reader parameters from ParserState to ReaderOptions. | John MacFarlane | 1 | -4/+4 | |
2012-07-25 | Restored stateStandalone as readerStandalone. | John MacFarlane | 1 | -2/+5 | |
It is indeed needed by the RST reader. | |||||
2012-07-25 | Got rid of stateStandalone, which was hardly used anyway. | John MacFarlane | 1 | -3/+1 | |
The only possible effect will be with rst fragments that begin with an rst title block, which will now cause the header transform. | |||||
2012-07-25 | Moved stateTabStop to readerTabStop in ReaderOptions. | John MacFarlane | 1 | -2/+2 | |
2012-07-24 | Refactored table parsers, captions now not part of core tableWith. | John MacFarlane | 1 | -2/+2 | |
2012-07-20 | Use Parser as type synonym for Parsec. | John MacFarlane | 1 | -92/+92 | |
2012-07-20 | Text.Pandoc.Parsing: Export all Parsec functions used in pandoc code. | John MacFarlane | 1 | -1/+0 | |
No other module directly imports Parsec. This will make it easier to change the parsing backend in the future, if we want to. | |||||
2012-07-20 | Use Text.Parsec instead of Text.ParserCombinators.Parsec. | John MacFarlane | 1 | -95/+95 | |
2012-07-16 | Don't recognize inline-markup starts inside words. | John MacFarlane | 1 | -8/+17 | |
For example, "2*2 = 4*1" should not contain an emphasized section. Added test case for "Literal symbols". Closes #569. | |||||
2012-05-29 | RST reader: handle figures. | John MacFarlane | 1 | -0/+15 | |
Closes #522. | |||||
2012-03-25 | Oops! Forgot to munch whitespace / ignore body after directive. | Greg Maslov | 1 | -1/+4 | |
2012-03-24 | Add parsing support for the rST default-role directive. | Greg Maslov | 1 | -3/+31 | |