summaryrefslogtreecommitdiff
path: root/test/Tests/Readers
Commit message (Collapse)AuthorAge
* Muse reader: avoid crashes on multiparagraph inline tags (#3866)Alexander2017-08-22
| | | Test checks that behavior is consistent with Amusewiki
* Muse reader: do not allow closing tags with EOF (#3863)Alexander2017-08-22
| | | This behavior is compatible to Amusewiki
* Muse reader: add definition list support (#3860)Alexander2017-08-21
|
* RST reader/writer: support unknown interpreted text roles...John MacFarlane2017-08-17
| | | | | | | ...by parsing them as Span with "role" attributes. This way they can be manipulated in the AST. Closes #3407.
* Org reader: use org-language attribute rather than data-org-language.John MacFarlane2017-08-09
|
* Org reader: use tag-name attribute instead of data-tag-name.John MacFarlane2017-08-09
|
* HTML reader: parse <main> like <div role=main>. (#3791)bucklereed2017-08-09
| | | | | | * HTML reader: parse <main> like <div role=main>. * <main> closes <p> and behaves like a block element generally
* Muse reader: debug indented paragraph support (#3839)Alexander2017-08-06
| | | | Take only first line indentation into account and do not start new paragraph on indentation change.
* Docx reader: Add tests for avoiding zero-level header.Jesse Rosenthal2017-08-06
|
* Muse reader: debug list and list item separation rules (#3837)Alexander2017-08-06
|
* LaTeX reader: plainbreak, fancybreak et al from the memoir class (#3833)bucklereed2017-08-05
|
* Muse reader: do not allow headers in blockquotes (#3831)Alexander Krotov2017-08-03
|
* Class: Removed unnecessary withMedia, improved haddocks.John MacFarlane2017-07-30
|
* Muse reader: fix reading of lists inside tags (#3802)Alexander Krotov2017-07-21
|
* Rewrote LaTeX reader with proper tokenization.John MacFarlane2017-07-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Muse reader: parse indented blockquotes (#3769)Alexander Krotov2017-06-28
|
* HTML reader: Use the lang value of <html> to set the lang meta value. (#3765)bucklereed2017-06-27
| | | | | | * HTML reader: Use the lang value of <html> to set the lang meta value. * Fix for pre-AMP environments.
* Muse reader: fix horizontal rule parsing (#3762)Alexander Krotov2017-06-26
| | | Do not parse 3 dashes as horizontal rule and allow whitespace after rule
* Muse reader: Require space before and after '=' for code (#3758)Alexander Krotov2017-06-25
|
* Muse reader: check that headers start at the first column (#3749)Alexander Krotov2017-06-20
|
* Muse reader: fix list item continuation parsing (#3747)Alexander Krotov2017-06-19
|
* Add Muse reader (#3620)Alexander Krotov2017-06-19
|
* Switched Writer types to use Text.John MacFarlane2017-06-11
| | | | | | | | | | | * XML.toEntities: changed type to Text -> Text. * Shared.tabFilter -- fixed so it strips out CRs as before. * Modified writers to take Text. * Updated tests, benchmarks, trypandoc. [API change] Closes #3731.
* Changed all readers to take Text instead of String.John MacFarlane2017-06-10
| | | | | | | | Readers: Renamed StringReader -> TextReader. Updated tests. API change.
* Org reader: respect export option for tagsAlbert Krewinkel2017-05-31
| | | | | | | Tags are appended to headlines by default, but will be omitted when the `tags` export option is set to nil. Closes: #3713
* Org reader: include tags in headlinesAlbert Krewinkel2017-05-31
| | | | | | | The Emacs default is to include tags in the headline when exporting. Instead of just empty spans, which contain the tag name as attribute, tags are rendered as small caps and wrapped in those spans. Non-breaking spaces serve as separators for multiple tags.
* Org reader: Fix cite parsing behaviourHerwig Stuetz2017-05-28
| | | | | | | | | | | | Until now, org-ref cite keys included special characters also at the end. This caused problems when citations occur right before colons or at the end of a sentence. With this change, all non alphanumeric characters at the end of a cite key are ignored. This also adds `,` to the list of special characters that are legal in cite keys to better mirror the behaviour of org-export.
* Org reader: subject full doc tree to headline transformationsAlbert Krewinkel2017-05-27
| | | | | | | | | Emacs parses org documents into a tree structure, which is then post-processed during exporting. The reader is changed to do the same, turning the document into a single tree of headlines starting at levelĀ 0. Fixes: #3695
* Org reader: fix smart parsing behaviorAlbert Krewinkel2017-05-18
| | | | | | | | | | | | | | | | Parsing of smart quotes and special characters can either be enabled via the `smart` language extension or the `'` and `-` export options. Smart parsing is active if either the extension or export option is enabled. Only smart parsing of special characters (like ellipses and en and em dashes) is enabled by default, while smart quotes are disabled. This means that all smart parsing features will be enabled by adding the `smart` language extension. Fine-grained control is possible by leaving the language extension disabled. In that case, smart parsing is controlled via the aforementioned export OPTIONS only. Previously, all smart parsing was disabled unless the language extension was enabled.
* Replace `repeat' and `take' with `replicate'Alexander Krotov2017-05-12
|
* Org reader: support macrosAlbert Krewinkel2017-05-06
| | | | Closes: #3401
* Org reader: allow multi-word arguments to src block paramsAlbert Krewinkel2017-04-23
| | | | | | | The reader now correctly parses src block parameter list even if parameter arguments contain multiple words. Closes: #3477
* Org reader: stop adding rundoc prefix to src paramsAlbert Krewinkel2017-04-23
| | | | | | | | | | | Source block parameter names are no longer prefixed with *rundoc*. This was intended to simplify working with the rundoc project, a babel runner. However, the rundoc project is unmaintained, and adding those markers is not the reader's job anyway. The original language that is specified for a source element is now retained as the `data-org-language` attribute and only added if it differs from the translated language.
* Org reader: handle line numbering switch for src blocksAlbert Krewinkel2017-04-23
| | | | | | | The line-numbering switch that can be given to source blocks (`-n` with an start number as an optional parameter) is parsed and translated to a class/key-value combination used by highlighting and other readers and writers.
* Org reader: allow emphasized text to be followed by `[`Albert Krewinkel2017-04-16
| | | | Closes: #3577
* Org reader: convert markup at beginning of footnotesAlbert Krewinkel2017-04-16
| | | | Closes: #3576
* Got rid of distracting warning in test output.John MacFarlane2017-03-14
|
* Use tasty for tests rather than test-framework.John MacFarlane2017-03-14
|
* Small change to unbalanced bracket test to speed up test suite.John MacFarlane2017-03-07
|
* Stylish-haskell automatic formatting changes.John MacFarlane2017-03-04
|
* Use new warnings throughout the code base.John MacFarlane2017-02-11
|
* Moved tests/ -> test/.John MacFarlane2017-02-04