diff options
author | John MacFarlane <jgm@berkeley.edu> | 2012-07-27 21:04:02 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2012-08-01 21:45:40 -0700 |
commit | fadc7b0d873cb021b69d06bd37313be84afeecca (patch) | |
tree | abcc413a98cbd70c20592ca696cf5e3a11850a0b /tests/Tests/Readers/LaTeX.hs | |
parent | 973c7ecacf68e39ca51bb8633a032ff2fd9eda07 (diff) | |
download | pandoc-fadc7b0d873cb021b69d06bd37313be84afeecca.tar.gz |
Major rewrite of markdown reader.
* 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).
Diffstat (limited to 'tests/Tests/Readers/LaTeX.hs')
0 files changed, 0 insertions, 0 deletions