Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-12-27 | Docx Reader: preprocess Document body to unwrap "w:sdt" elements | Jesse Rosenthal | 1 | -1/+31 | |
We walk through the document (using the zipper in Text.XML.Light.Cursor) to unwrap the sdt tags before doing the rest of the parsing of the document. Note that the function is generically named `walkDocument` in case we need to do any further preprocessing in the future. Closes #4190 | |||||
2017-12-26 | LaTeX reader: support `\foreignlanguage` from babel. | John MacFarlane | 1 | -0/+30 | |
2017-12-24 | RST reader: allow empty list items (as docutils does). | John MacFarlane | 1 | -2/+2 | |
Closes #4193. | |||||
2017-12-23 | JATS reader: handle author-notes. | John MacFarlane | 1 | -5/+6 | |
2017-12-23 | JATS reader: code refactoring. | John MacFarlane | 1 | -63/+48 | |
2017-12-23 | JATS reader: include institute metadata. | John MacFarlane | 1 | -2/+11 | |
2017-12-23 | JATS reader: process author metadata. | John MacFarlane | 1 | -5/+27 | |
2017-12-23 | JATS reader: better citation handling. | John MacFarlane | 1 | -3/+79 | |
We now convert a ref-list element into a list of citations in metadata, suitable for use with pandoc-citeproc. We also convert references to pandoc citation elements. Thus a JATS article with embedded bibliographic information can be processed with pandoc and pandoc-citeproc to produce a formatted bibliography. | |||||
2017-12-22 | Merge pull request #4189 from mb21/export-blocksToInlines | John MacFarlane | 2 | -3/+3 | |
API change: export blocksToInlines' from Text.Pandoc.Shared | |||||
2017-12-22 | `latex_macros` extension changes. | John MacFarlane | 2 | -5/+11 | |
Don't pass through macro definitions themselves when `latex_macros` is set. The macros have already been applied. If `latex_macros` is enabled, then `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing a macro definition, and will update pandoc's internal macro map accordingly, but the empty string will be returned. Together with earlier changes, this closes #4179. | |||||
2017-12-22 | Markdown reader: improved raw tex parsing. | John MacFarlane | 1 | -6/+9 | |
+ Preserve original whitespace between blocks. + Recognize `\placeformula` as context. | |||||
2017-12-22 | LaTeX reader: use applyMacros in rawLaTeXBlock, rawLaTeXInline. | John MacFarlane | 1 | -2/+5 | |
2017-12-22 | LaTeX reader: Refactored inlineCommand. | John MacFarlane | 1 | -24/+11 | |
2017-12-22 | API change: export blocksToInlines' from Text.Pandoc.Shared | mb21 | 2 | -3/+3 | |
2017-12-21 | Merge pull request #4177 from stencila/jats-xml-reader | John MacFarlane | 1 | -0/+404 | |
Add Basic JATS reader based on DocBook reader | |||||
2017-12-22 | Improve support for code language in JATS | Hamish Mackenzie | 1 | -2/+19 | |
2017-12-21 | LaTeX reader: Fixed subtle bug in tokenizer. | John MacFarlane | 1 | -2/+3 | |
Material following `^^` was dropped if it wasn't a character escape. This only affected invalid LaTeX, so we didn't see it in the wild, but it appeared in a QuickCheck test failure https://travis-ci.org/jgm/pandoc/jobs/319812224 | |||||
2017-12-21 | Muse reader: parse anchors immediately after headings as IDs | Alexander Krotov | 1 | -5/+9 | |
2017-12-20 | Org reader: fix asterisks-related parsing error | Albert Krewinkel | 1 | -1/+1 | |
A parsing error was fixed which caused the org reader to fail when parsing a paragraph starting with two or more asterisks. Fixes: #4180 | |||||
2017-12-20 | Muse reader: require that note references does not start with 0 | Alexander Krotov | 1 | -1/+3 | |
2017-12-20 | Add Basic JATS reader based on DocBook reader | Hamish Mackenzie | 1 | -0/+387 | |
2017-12-19 | Muse reader: parse empty comments correctly | Alexander Krotov | 1 | -2/+1 | |
2017-12-17 | OPML reader: enable raw HTML and other extensions by default for notes. | John MacFarlane | 1 | -9/+14 | |
This fixes a regression in 2.0. Note that extensions can now be individually disabled, e.g. `-f opml-smart-raw_html`. Closes #4164. | |||||
2017-12-15 | LaTeX reader: export tokenize, untokenize. | John MacFarlane | 1 | -1/+3 | |
Mainly so they can be tested. | |||||
2017-12-15 | Fixed regression in LateX tokenization. | John MacFarlane | 1 | -2/+2 | |
This mainly affects the Markdown reader when parsing raw LaTeX with escaped spaces. Closes #4159. | |||||
2017-12-14 | RST reader: more accurate parsing of references. | John MacFarlane | 1 | -36/+24 | |
Previously we erroneously included the enclosing backticks in a reference ID (closes #4156). This change also disables interpretation of syntax inside references, as in docutils. So, there is no emphasis in `my *link*`_ | |||||
2017-12-14 | Markdown reader: be pickier about table captions. | John MacFarlane | 1 | -1/+1 | |
A caption starts with a `:` which can't be followed by punctuation. Otherwise we can falsely interpret the start of a fenced div, or even a table header line like `:--:|:--:`, as a caption. | |||||
2017-12-13 | Docx writer: Continue lists after interruption. | Jesse Rosenthal | 1 | -15/+22 | |
Docx expects that lists will continue where they left off after an interruption and introduces a new id if a list is starting again. So we keep track of the state of lists and use them to define a "start" attribute, if necessary. Closes #4025 | |||||
2017-12-13 | Markdown reader: always use four space rule for example lists. | John MacFarlane | 1 | -9/+16 | |
It would be awkward to indent example list contents to the first non-space character after the label, since example list labels are often long. Thanks to Bernhard Fisseni for the suggestion. | |||||
2017-12-12 | Markdown: Improved computation of relative cell widths in pipe tables. | John MacFarlane | 1 | -1/+1 | |
2017-12-12 | Pipe tables: use full text width for tables with wrapping cells. | John MacFarlane | 1 | -2/+2 | |
Previously we computed the column sizes based on the ratio between the header lines and the text width (as set by `--columns`). This meant that tables with very short header lines would be very narrow. With this change, pipe tables with wrapping cells will always take up the whole text width. The relative column widths will still be determined by the ratio of header lines, but they will be normalized to add up to 1.0. | |||||
2017-12-08 | LaTeX reader: fix \ before newline. | John MacFarlane | 1 | -3/+14 | |
This should be a nonbreaking space, as long as it's not followed by a blank line. This has been fixed at the tokenizer level. Closes #4134. | |||||
2017-12-06 | Markdown reader: accept processing instructions as raw HTML. | John MacFarlane | 1 | -2/+3 | |
Closes #4125. | |||||
2017-12-06 | hlint Muse reader and tests | Alexander Krotov | 1 | -4/+4 | |
2017-12-06 | Muse reader: don't allow emphasis to be preceded by letter | Alexander Krotov | 1 | -2/+12 | |
2017-12-05 | Muse reader: support multiline directives in Amusewiki mode | Alexander Krotov | 1 | -4/+24 | |
2017-12-04 | Markdown reader: Don't parse native div as table caption. | John MacFarlane | 1 | -1/+1 | |
Closes #4119. | |||||
2017-12-04 | Add `empty_paragraphs` extension. | John MacFarlane | 2 | -5/+13 | |
* Deprecate `--strip-empty-paragraphs` option. Instead we now use an `empty_paragraphs` extension that can be enabled on the reader or writer. By default, disabled. * Add `Ext_empty_paragraphs` constructor to `Extension`. * Revert "Docx reader: don't strip out empty paragraphs." This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b. * Implement `empty_paragraphs` extension in docx reader and writer, opendocument writer, html reader and writer. * Add tests for `empty_paragraphs` extension. | |||||
2017-12-04 | Muse reader: add underline support in Emacs Muse mode | Alexander Krotov | 1 | -1/+7 | |
2017-12-02 | Docx reader: don't strip out empty paragraphs. | John MacFarlane | 1 | -3/+1 | |
We now have the `--strip-empty-paragraphs` option for that, if you want it. Closes #2252. Updated docx reader tests. We use stripEmptyParagraphs to avoid changing too many tests. We should add new tests for empty paragraphs. | |||||
2017-11-29 | Support beamer `\alert` in LaTeX reader. Closes #4091. | John MacFarlane | 1 | -0/+1 | |
2017-11-29 | Muse reader: correctly remove indentation from notes | Alexander Krotov | 1 | -2/+2 | |
Exactly one space is required and considered to be part of the marker. | |||||
2017-11-27 | Muse reader: parse "~~" as non-breaking space in Emacs mode | Alexander Krotov | 1 | -0/+7 | |
2017-11-27 | Muse reader: make code blocks round trip | Alexander Krotov | 1 | -8/+16 | |
2017-11-26 | Muse reader: drop common space prefix from list items | Alexander Krotov | 1 | -11/+17 | |
2017-11-25 | Fix comment typo: s/elemnet/element/ | Alexander Krotov | 1 | -1/+1 | |
2017-11-25 | Muse reader: don't interpret XML entities | Alexander Krotov | 1 | -6/+5 | |
2017-11-25 | Muse reader: remove `nested` | Alexander Krotov | 1 | -11/+2 | |
2017-11-24 | Muse reader: parse markup in definition list terms | Alexander Krotov | 1 | -2/+4 | |
2017-11-24 | Muse reader: allow definition to end with EOF | Alexander Krotov | 1 | -1/+1 | |