summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
Commit message (Collapse)AuthorAge
* Revert "Commonmark reader: parse HTML as plain text if `-raw_html`."John MacFarlane2018-03-02
| | | | This reverts commit 6dd21250288b51f10056b15a83130f76c788d904.
* Commonmark reader: parse HTML as plain text if `-raw_html`.John MacFarlane2018-03-02
|
* Muse reader: fix indentation requirements for footnote continuationsAlexander Krotov2018-03-03
|
* LaTeX reader: Fix regression in package options including underscore.John MacFarlane2018-03-02
| | | | Closes #4424.
* hlint Muse reader and writerAlexander Krotov2018-03-02
|
* Muse reader: enable <literal> tags even if amuse extension is enabledAlexander Krotov2018-03-02
| | | | | | Amusewiki disables <literal> tags for security reasons. If user wants similar behavior in pandoc, RawBlocks and RawInlines can be removed or replaced with filters.
* Muse reader: remove space prefix from <literal> tag contentsAlexander Krotov2018-03-02
|
* Muse reader: do not consume whitespace while looking for closing end tagAlexander Krotov2018-03-02
| | | | Fix for a bug caught by round-trip test.
* Docx reader: Handle nested sdt tags.Jesse Rosenthal2018-02-28
| | | | | | | Previously we had only unwrapped one level of sdt tags. Now we recurse if we find them. Closes: #4415
* Muse reader: allow <quote> and other tags to be indentedAlexander Krotov2018-02-28
|
* LaTeX reader: make --trace work.John MacFarlane2018-02-26
|
* Muse reader: allow single colon in definition list termAlexander Krotov2018-02-24
|
* Docx reader: code cleanup.Jesse Rosenthal2018-02-23
| | | | Make the code in `runStyleToTransform` a bit more consistent.
* Docx reader: simplify custom-style reading code.Jesse Rosenthal2018-02-23
|
* Docx reader: Don't look up dependant run styles if +styles is enabled.Jesse Rosenthal2018-02-23
| | | | | | It makes more sense not to interpret -- otherwise using the original document as the reference-doc would produce two of everything: the interpreted version and the uninterpreted style version.
* Muse reader: improve verse parsingAlexander Krotov2018-02-23
| | | | | Now verse marked up with ">" (in contrast to <verse> tag) can be placed inside lists.
* Docx reader: Move pandoc inline styling inside custom-style spanJesse Rosenthal2018-02-22
| | | | | | | | Previously Emph, Strong, etc were outside the custom-style span. This moves them inside in order to make it easier to write filters that act on the formatting in these contents. Tests and MANUAL example are changed to match.
* Docx reader: Avoid repeated spans in custom styles.Jesse Rosenthal2018-02-22
| | | | | | The previous commit had a bug where custom-style spans would be read with every recurrsion. This fixes that, and changes the example given in the manual.
* Docx reader: read custom stylesJesse Rosenthal2018-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will read all paragraph and character classes as divs and spans, respectively. Dependent styles will still be resolved, but will be wrapped with appropriate style tags. It is controlled by the `+styles` extension (`-f docx+styles`). This can be used in conjunction with the `custom-style` feature in the docx writer for a pandoc-docx editing workflow. Users can convert from an input docx, reading the custom-styles, and then use that same input docx file as a reference-doc for producing an output docx file. Styles will be maintained across the conversion, even if pandoc doesn't understand them. Without the extension: $ pandoc test/docx/custom-style-reference.docx -f docx -t markdown This is some text. This is text with an *emphasized* text style. And this is text with a **strengthened** text style. > Here is a styled paragraph that inherits from Block Text. With the extension: $ pandoc test/docx/custom-style-reference.docx -f docx+styles -t markdown ::: {custom-style="FirstParagraph"} This is some text. ::: ::: {custom-style="BodyText"} This is text with an *[[emphasized]{custom-style="Emphatic"}]{custom-style="Emphatic"}* text style. And this is text with a **[[strengthened]{custom-style="Strengthened"}]{custom-style="Strengthened"}** text style. ::: ::: {custom-style="MyBlockStyle"} Closes: #1843
* Org reader: allow changing emphasis syntaxAlbert Krewinkel2018-02-21
| | | | | | | | | | | | | | | | The characters allowed before and after emphasis can be configured via `#+pandoc-emphasis-pre` and `#+pandoc-emphasis-post`, respectively. This allows to change which strings are recognized as emphasized text on a per-document or even per-paragraph basis. The allowed characters must be given as (Haskell) string. #+pandoc-emphasis-pre: "-\t ('\"{" #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}[" If the argument cannot be read as a string, the default value is restored. Closes: #4378
* Muse reader: replace setState with updateState where possibleAlexander Krotov2018-02-21
|
* Muse reader: fix compiler warningJesse Rosenthal2018-02-20
| | | | lambda variable `st` shadowed an existing variable.
* Muse reader: use updateState instead of setState to restore museInLinkAlexander Krotov2018-02-20
|
* Move manyUntil to Text.Pandoc.Parsing and use it in Txt2Tags readerAlexander Krotov2018-02-19
|
* LaTeX reader: Fixed comments inside citations. Closes #4374.John MacFarlane2018-02-17
|
* Muse reader: prioritize lists with roman numerals over alphabetical listsAlexander Krotov2018-02-16
| | | | | This is to make sure "i." starts a roman numbered list, instead of a list with letter "i" (followed by "j", "k", ...").
* Docx reader: Pick table width from the longest row or headerdanse2018-02-15
| | | | | | | This change is intended to preserve as much of the table content as possible Closes #4360
* Muse reader: fix directive parsingAlexander Krotov2018-02-15
| | | | This fixes bugs introduced in commit 4bfab8f04c105f111d8d4e1c3ed7f7b5c75dbd19.
* Muse reader: remove listItemContents functionAlexander Krotov2018-02-13
|
* Muse reader: hlintAlexander Krotov2018-02-13
|
* Muse reader: parse definition lists with multiple descriptionsAlexander Krotov2018-02-13
|
* 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: move para definition into blockElementsAlexander Krotov2018-02-11
|
* Muse reader: move end-of-line parsing to paraUntilAlexander Krotov2018-02-11
|
* 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.
* 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: simplify listItemContents' with sepBy1Alexander Krotov2018-02-04
|
* Muse reader: replace ParserState with MuseStateAlexander Krotov2018-01-31
|
* 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
|
* Muse reader: parse verse tag contents without parseFromStringAlexander Krotov2018-01-28
|
* Muse reader: make verseLine return Inlines, not StringAlexander Krotov2018-01-28
|