Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2012-08-01 | Parsing: removed duplication of Key and Key'. | John MacFarlane | 2 | -18/+23 | |
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 | 2 | -392/+555 | |
* 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-27 | Markdown reader: Added sensitivity to Ext_example_lists. | John MacFarlane | 1 | -1/+3 | |
2012-07-27 | Markdown reader: Check fancy_lists and startnum extensions. | John MacFarlane | 1 | -2/+6 | |
2012-07-27 | Replaced writerStrict with writerExtensions in WriterOptions. | John MacFarlane | 1 | -5/+7 | |
Still have not implemented individual tests for all the extensions in the markdown writer. | |||||
2012-07-26 | Fixed whitespace errors. | John MacFarlane | 7 | -81/+81 | |
2012-07-26 | Textile reader: Replace failIfStrict with guardEnabled. | John MacFarlane | 1 | -3/+3 | |
2012-07-26 | Use readerExtensions instead of readerStrict in readers. | John MacFarlane | 2 | -110/+91 | |
Test individually for the extensions. | |||||
2012-07-25 | Changed reader parameters from ParserState to ReaderOptions. | John MacFarlane | 6 | -22/+23 | |
2012-07-25 | Restored stateStandalone as readerStandalone. | John MacFarlane | 1 | -2/+5 | |
It is indeed needed by the RST reader. | |||||
2012-07-25 | Moved stateApplyMacros, stateIndentedCodeClasses to ReaderOptions. | John MacFarlane | 1 | -2/+2 | |
2012-07-25 | stateCitations -> readerCitations. | John MacFarlane | 1 | -2/+2 | |
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 stateOldDashes to readerOldDashes in ReaderOptions. | John MacFarlane | 1 | -4/+6 | |
2012-07-25 | Moved stateTabStop to readerTabStop in ReaderOptions. | John MacFarlane | 2 | -10/+7 | |
2012-07-25 | Moved ParseRaw from ParserState to ReaderOptions. | John MacFarlane | 4 | -13/+16 | |
2012-07-25 | Options -> ReaderOptions. | John MacFarlane | 3 | -13/+13 | |
Better to keep reader and writer options separate. | |||||
2012-07-25 | Put smart, strict in separate options field in state. | John MacFarlane | 3 | -13/+19 | |
This is the beginning of a larger transition that will make Options, not ParserState, the parameter of the read functions. (Options will also be used in writers, in place of WriterOptions.) Next step is to remove strict, replacing it with granular tests for different extensions. | |||||
2012-07-24 | HTML reader: Fixed bug in htmlBalanced. | John MacFarlane | 1 | -2/+1 | |
This caused hangs in parsing certain markdown input using --strict. | |||||
2012-07-24 | Don't require strict HTML blocks to begin at left margin. | John MacFarlane | 1 | -3/+1 | |
Technically this is required, according to the mardkown syntax document, but Markdown.pl and other markdown processors are more liberal. | |||||
2012-07-24 | Use catch from Control.Exception to avoid warnings. | John MacFarlane | 1 | -2/+4 | |
2012-07-24 | Small fix to fix: Allow blank lines btw table and caption. | John MacFarlane | 1 | -0/+1 | |
2012-07-24 | Fixed performance improvement to tables. | John MacFarlane | 1 | -1/+1 | |
2012-07-24 | More performance improvements on pipe tables. | John MacFarlane | 1 | -2/+1 | |
2012-07-24 | Refactored table parsers, captions now not part of core tableWith. | John MacFarlane | 2 | -11/+17 | |
2012-07-24 | Slight improvement to performance for pipe tables. | John MacFarlane | 1 | -11/+16 | |
Still, pipe tables are a huge performance drag. One benchmark: With pipe tables, 1.25 sec (including this fix). without pipe tables, 1.05 sec. | |||||
2012-07-22 | Revised code for pipe tables. | John MacFarlane | 1 | -5/+51 | |
* All tables now require at least one body row. * Renamed from 'extra' to 'pipe' tables. * Moved functions from Parsing to Readers.Markdown. * Cleaned up code; revised to parse in one pass rather than parsing a raw string, splitting it, and parsing the components. * Allow pipe tables without pipes on the ends (as PHP Markdown Extra does). | |||||
2012-07-22 | Merge pull request #510 from mytskine/markdown-extra | John MacFarlane | 1 | -0/+5 | |
Markdown extra tables [part of the multi-markdown syntax for tables] | |||||
2012-07-20 | Use Parser as type synonym for Parsec. | John MacFarlane | 5 | -305/+305 | |
2012-07-20 | Text.Pandoc.Parsing: Export all Parsec functions used in pandoc code. | John MacFarlane | 5 | -7/+1 | |
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 | 5 | -317/+317 | |
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-07-13 | Textile reader: properly handle links with surrounding brackets. | John MacFarlane | 1 | -3/+16 | |
Square brackets need to be used when the link isn't surrounded by spaces or punctuation, or when the URL ending may be ambiguous. Closes #564. | |||||
2012-06-26 | Docbook reader: Added support for "bold" emphasis. | John MacFarlane | 1 | -0/+1 | |
Thanks to mb21. | |||||
2012-06-04 | Markdown reader: Added cf. and cp. to list of likely abbreviations. | John MacFarlane | 1 | -1/+1 | |
2012-05-29 | Textile reader: fix for `<notextile>` and `==`. | paul.rivier | 1 | -10/+3 | |
Closes #517. | |||||
2012-05-29 | RST reader: handle figures. | John MacFarlane | 1 | -0/+15 | |
Closes #522. | |||||
2012-05-29 | Added a couple needed trys to textile reader. | John MacFarlane | 1 | -2/+2 | |
2012-05-22 | LaTeX reader: Support `\centerline`. | John MacFarlane | 1 | -0/+1 | |
2012-05-12 | DocBook: support segmentedlist. | John MacFarlane | 1 | -4/+17 | |
2012-05-12 | DocBook reader: Support simplelist, member. | John MacFarlane | 1 | -3/+5 | |
2012-05-12 | Don't include non-language classes for code blocks. | John MacFarlane | 1 | -6/+6 | |
2012-05-12 | DocBook reader: Recognize example as block element. | John MacFarlane | 1 | -1/+1 | |
2012-05-12 | DocBook reader: Promote level 0 headers to 1 even if dbBook not set. | John MacFarlane | 1 | -1/+1 | |
2012-05-12 | DocBook reader: Support bridgehead. | John MacFarlane | 1 | -2/+3 | |
2012-05-12 | DocBook reader: only use language classes for inline code. | John MacFarlane | 1 | -18/+18 | |
2012-05-12 | DocBook reader: Better handling tags that can have inline or block content. | John MacFarlane | 1 | -10/+10 | |
2012-05-12 | DocBook reader: computeroutput is an inline tag, not block. | John MacFarlane | 1 | -2/+2 | |
2012-05-11 | LaTeX reader: Allow skipping of unknown block commands in `\author` section. | John MacFarlane | 1 | -1/+3 | |
Closes #505, which was a problem with `\vspace{10pt}` inside `\author`. | |||||
2012-05-11 | DocBook reader: Support bibliomixed tag. | John MacFarlane | 1 | -1/+2 | |