summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Muse reader: parse next list item before parsing more item contentsAlexander Krotov2018-02-13
|
* Muse reader: refactor to avoid reparsingAlexander Krotov2018-02-12
| | | | | | | | | Lists are parsed in linear instead of exponential time now. Contents of block tags, such as <quote>, is parsed directly, without storing it in a string and parsing with parseFromString. Fixed a bug: headers did not terminate lists.
* Muse reader: move indentation parsing from definitionListItem to definitionListAlexander Krotov2018-02-12
|
* Muse reader: paragraph indentation does not indicate nested quoteAlexander Krotov2018-02-12
| | | | | | | | | | Muse allows indentation to indicate quotation or alignment, but only on the top level, not within a <quote> or list. This patch also simplifies the code by removing museInQuote and museInList fields from the state structure. Headers and indented paragraphs are attempted to be parsed only at the topmost level, instead of aborting parsing with guards.
* Muse reader: replace optionMaybe with optionalAlexander Krotov2018-02-12
|
* Muse reader: test empty quote tagAlexander Krotov2018-02-11
|
* Muse reader: require that block tags are on separate linesAlexander Krotov2018-02-11
| | | | | | | | Text::Amuse already explicitly requires it anyway. Supporting block tags on the same line as contents makes it hard to combine closing tag parsers with indentation parsers. Being able to combine parsers is required for no-reparsing refactoring of Muse reader.
* Muse reader: move para definition into blockElementsAlexander Krotov2018-02-11
|
* Muse reader: move end-of-line parsing to paraUntilAlexander Krotov2018-02-11
|
* Updated rst writer test for template change.John MacFarlane2018-02-08
|
* rst template: remove definition of 'math' role as raw.John MacFarlane2018-02-08
| | | | | This used to be needed prior to v 0.8 of docutils, but now math support is built-in.
* Muse reader: rename "literal" to "literalTag"Alexander Krotov2018-02-06
|
* Muse reader: avoid reparsing at the top levelAlexander Krotov2018-02-06
| | | | | | Blocks following paragraphs are parsed only once at the top level. Lists still take exponential time to parse, but this time is not doubled anymore when this list terminates paragraph.
* Muse reader: implement paraUntilAlexander Krotov2018-02-06
| | | | | paraUntil does not discard the result of the following block parsing. This change is a part of Muse reader refactoring to avoid reparsing.
* INSTALL.md: mentioning Stack version. (#4343)Adam Brandizzi2018-02-05
|
* Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348)jarlg2018-02-05
|
* Muse reader: avoid parsing newline after paragraph twiceAlexander Krotov2018-02-05
| | | | Removed lookAhead from blankline, so it is consumed.
* Muse reader: make block parsers responsible for parsing newlineAlexander Krotov2018-02-05
| | | | Block parsers must always stop after newline or at the end of file.
* Muse reader: test that two blank lines after verse can separate list itemsAlexander Krotov2018-02-05
| | | | | Unlike paragraph and <quote> tag parsers, verse parser consumes newline. For this reason only three or more blank lines can separate list items.
* Muse reader: test that lists can be separated with two blanklines after ↵Alexander Krotov2018-02-05
| | | | | | blockquote Existing tests only checked this for paragraphs.
* Muse reader: simplify listItemContents' with sepBy1Alexander Krotov2018-02-04
|
* C -> c.John MacFarlane2018-02-03
|
* Muse writer: write image width specified in percent in Text::Amuse modeAlexander Krotov2018-02-03
|
* Determine image size for PDFs.John MacFarlane2018-02-02
| | | | Closes #4322.
* Use latest pandoc-citeproc.John MacFarlane2018-02-01
|
* TEI writer: Use height instead of depth for images.John MacFarlane2018-02-01
| | | | Closes #4331.
* Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9.John MacFarlane2018-02-01
| | | | | | | | This is needed because the type constructor Empty in MarkupM has changed, and the HTML writer assumes the constructor has an argument. Closes #4334.
* Muse reader: replace ParserState with MuseStateAlexander Krotov2018-01-31
|
* Export list marker parsers from Text.Pandoc.ParsingAlexander Krotov2018-01-31
|
* Muse writer: don't wrap displayMath into <verse>Alexander Krotov2018-01-30
| | | | | | <verse> is a block tag and displayMath is an inline element. Writing <verse> around displayMath could result in nested <verse> tags.
* Muse writer: escape nonbreaking space ("~~")Alexander Krotov2018-01-29
|
* Muse reader: simplify block tag parsing codeAlexander Krotov2018-01-29
|
* Muse reader: parse inline <literal> without parseFromStringAlexander Krotov2018-01-29
|
* Muse reader: parse <comment> and <verbatim> without parseFromStringAlexander Krotov2018-01-29
|
* MANUAL.txt: self-contained implies standalone (#4304)Daniel Lublin2018-01-28
|
* CONTRIBUTING.md: label was renamed. (#4310)Adam Brandizzi2018-01-28
| | | See https://groups.google.com/forum/#!msg/pandoc-discuss/mrFsj5RzNFA/Pnd3zubWBwAJ;context-place=searchin/pandoc-discuss/%22good$20first$20issue%22%7Csort:date
* Muse reader: parse verse tag contents without parseFromStringAlexander Krotov2018-01-28
|
* Muse reader: make verseLine return Inlines, not StringAlexander Krotov2018-01-28
|
* Muse reader: parse directives without parseFromStringAlexander Krotov2018-01-28
|
* Muse reader: fix parsing of trailing whitespaceAlexander Krotov2018-01-28
| | | | | Newline after whitespace now results in softbreak instead of space.
* Muse reader: simplify paragraph parsingAlexander Krotov2018-01-28
| | | | Blank lines are already handled by blockElements.
* Docx writer tests: correct test name.Jesse Rosenthal2018-01-27
|
* Docx writer tests: Add tests for custom stylesJesse Rosenthal2018-01-27
|
* Add docx golden tests to cabal file.Jesse Rosenthal2018-01-27
|
* Docx writer tests: Use new golden frameworkJesse Rosenthal2018-01-27
| | | | | | | | | | | | | | These are based off the reader tests, with some removed (where the reader output was identical, based on different docx inputs). There are still more to be added. In particular, tests for custom-styles need to be added. All golden docx files have been checked in MS Word 2013 (windows). There is no corruption. There is questionable output in the `tables` test: the three tables seemed to be joined. This will be addressed in a future commit, and the golden docx file will be changed.
* Docx writer: make more deterministic to facilitate testingJesse Rosenthal2018-01-27
| | | | | | | | | | | | | This will allow us to compare files directly in a golden test. Times are still based on IO, but we will be able to safely skip those. Changes: - `getUniqueId` now calls to the state to get an incremented digit, instead of calling to P.uniqueHash. - we always start the PRNG in mkNumbering/mkAbstractNum with the same seed (1848), so our randoms should be the same each time.
* Docx writer: Fix ids in comment writingJesse Rosenthal2018-01-27
| | | | | | | | | | | Comments from `--track-changes=all` were producing corrupt docx, because the writer was trying to get id from the `(ID,_,_)` field of the attributes, and ignoring the "id" entry in the key-value pairs. We now check both. There is a larger conversation to be had about the right way to treat "id" and "class" entries in kvs, but this fix will correctly interpret the output of the docx reader work.
* Tests: Abstract powerpoint tests out to OOXML tests.Jesse Rosenthal2018-01-25
| | | | | | | There is very little pptx-specific in these tests, so we abstract out the basic testing function so it can be used for docx as well. This should allow us to catch some errors in the docx writer that slipped by the roundtrip testing.
* ConTeXt writer: new section syntax and --section-divs (#4295)Henri Menke2018-01-25
| | | | | | | | Fixes #2609. This PR introduces the new-style section headings: `\section[my-header]{My Header}` -> `\section[title={My Header},reference={my-header}]`. On top of this, the ConTeXt writer now supports the `--section-divs` option to write sections in the fenced style, with `\startsection` and `\stopsection`.
* Dock writer: Fix deletion track changesJesse Rosenthal2018-01-25
| | | | | | This had been mistakenly written as a second insertion function. Closes: #4303