pandoc/test/Tests/Readers
John MacFarlane 0feb7504b1 Rewrote LaTeX reader with proper tokenization.
This rewrite is primarily motivated by the need to
get macros working properly.  A side benefit is that the
reader is significantly faster (27s -> 19s in one
benchmark, and there is a lot of room for further
optimization).

We now tokenize the input text, then parse the token stream.

Macros modify the token stream, so they should now be effective
in any context, including math. Thus, we no longer need the clunky
macro processing capacities of texmath.

A custom state LaTeXState is used instead of ParserState.
This, plus the tokenization, will require some rewriting
of the exported functions rawLaTeXInline, inlineCommand,
rawLaTeXBlock.

* Added Text.Pandoc.Readers.LaTeX.Types (new exported module).
  Exports Macro, Tok, TokType, Line, Column.  [API change]
* Text.Pandoc.Parsing: adjusted type of `insertIncludedFile`
  so it can be used with token parser.
* Removed old texmath macro stuff from Parsing.
  Use Macro from Text.Pandoc.Readers.LaTeX.Types instead.
* Removed texmath macro material from Markdown reader.
* Changed types for Text.Pandoc.Readers.LaTeX's
  rawLaTeXInline and rawLaTeXBlock.  (Both now return a String,
  and they are polymorphic in state.)
* Added orgMacros field to OrgState.  [API change]
* Removed readerApplyMacros from ReaderOptions.
  Now we just check the `latex_macros` reader extension.
* Allow `\newcommand\foo{blah}` without braces.

Fixes #1390.
Fixes #2118.
Fixes #3236.
Fixes #3779.
Fixes #934.
Fixes #982.
2017-07-07 12:36:00 +02:00
..
Docx.hs Switched Writer types to use Text. 2017-06-11 00:46:31 +02:00
EPUB.hs Use tasty for tests rather than test-framework. 2017-03-14 17:07:23 +01:00
HTML.hs HTML reader: Use the lang value of <html> to set the lang meta value. (#3765) 2017-06-27 10:19:37 +02:00
LaTeX.hs Rewrote LaTeX reader with proper tokenization. 2017-07-07 12:36:00 +02:00
Markdown.hs Changed all readers to take Text instead of String. 2017-06-10 18:26:44 +02:00
Muse.hs Muse reader: parse indented blockquotes (#3769) 2017-06-28 14:32:53 +02:00
Odt.hs Switched Writer types to use Text. 2017-06-11 00:46:31 +02:00
Org.hs Changed all readers to take Text instead of String. 2017-06-10 18:26:44 +02:00
RST.hs Changed all readers to take Text instead of String. 2017-06-10 18:26:44 +02:00
Txt2Tags.hs Changed all readers to take Text instead of String. 2017-06-10 18:26:44 +02:00