summaryrefslogtreecommitdiff
path: root/test/command
Commit message (Collapse)AuthorAge
* New upstream version 2.1.2~dfsgSean Whitton2018-04-24
|
* LaTeX reader: Fix regression in package options including underscore.John MacFarlane2018-03-02
| | | | Closes #4424.
* LaTeX reader: Fixed comments inside citations. Closes #4374.John MacFarlane2018-02-17
|
* 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`.
* Markdown reader: Fix parsing bug with nested fenced divs.John MacFarlane2018-01-20
| | | | | | | | | Closes #4281. Previously we allowed "nonindent spaces" before the opening and closing `:::`, but this interfered with list parsing, so now we require the fences to be flush with the margin of the containing block.
* RST reader: fix parsing of headers with trailing space.John MacFarlane2018-01-20
| | | | | | This was a regression in pandoc 2.0. Closes #4280.
* Markdown reader: don't coalesce adjacent raw LaTeX blocks...John MacFarlane2018-01-17
| | | | | | if they are separated by a blank line. See lierdakil/pandoc-crossref#160 for motivation.
* RST reader: add aligned environment when needed in math.John MacFarlane2018-01-14
| | | | | | | | | rst2latex.py uses an align* environment for math in `.. math::` blocks, so this math may contain line breaks. If it does, we put the math in an `aligned` environment to simulate rst2latex.py's behavior. Closes #4254.
* Markdown reader: Improved inlinesInBalancedBrackets.John MacFarlane2018-01-14
| | | | | | | | The change both improves performance and fixes a regression whereby normal citations inside inline notes were not parsed correctly. Closes jgm/pandoc-citeproc#315.
* LaTeX reader: pass through macro defs in rawLaTeXBlock...John MacFarlane2018-01-13
| | | | | | | | | | even if the `latex_macros` extension is set. This reverts to earlier behavior and is probably safer on the whole, since some macros only modify things in included packages, which pandoc's macro expansion can't modify. Closes #4246.
* LaTeX reader: allow macro definitions inside macros.John MacFarlane2018-01-13
| | | | | | | | | | | | Previously we went into an infinite loop with ``` \newcommand{\noop}[1]{#1} \noop{\newcommand{\foo}[1]{#1}} \foo{hi} ``` See #4253.
* RST reader: better handling for headers with an anchor.John MacFarlane2018-01-10
| | | | | | Instead of creating a div containing the header, we put the id directly on the header. This way header promotion will work properly. Closes #4240.
* Fixed a test case so it works on windows too.John MacFarlane2018-01-09
|
* HTML writer: Fixed footnote backlinks with --id-prefix.John MacFarlane2018-01-09
| | | | Closes #4235.
* LaTeX reader: be more tolerant of `&` character.John MacFarlane2017-12-28
| | | | | This allows us to parse unknown tabular environments as raw LaTeX. Closes #4208.
* Merge pull request #4184 from mb21/html-reader-figcaptionJohn MacFarlane2017-12-27
|\ | | | | HTML Reader: be more forgiving about figcaption
| * HTML Reader: be more forgiving about figcaptionmb212017-12-23
| | | | | | | | fixes #4183
* | HTML reader: parse div with class `line-block` as LineBlock.John MacFarlane2017-12-27
| | | | | | | | See #4162.
* | LaTeX reader: support `\foreignlanguage` from babel.John MacFarlane2017-12-26
| |
* | RST reader: allow empty list items (as docutils does).John MacFarlane2017-12-24
|/ | | | Closes #4193.
* `latex_macros` extension changes.John MacFarlane2017-12-22
| | | | | | | | | | | | 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.
* Markdown reader: improved raw tex parsing.John MacFarlane2017-12-22
| | | | | + Preserve original whitespace between blocks. + Recognize `\placeformula` as context.
* RST writer: fix anchors for headers.John MacFarlane2017-12-22
| | | | | We were missing an `_`. See #4188.
* Org writer: do not wrap "-" to avoid accidental bullet listsAlexander Krotov2017-12-21
| | | | Also add TODO for ordered lists.
* Muse writer: don't wrap note references to the next lineAlexander Krotov2017-12-19
| | | | Closes #4172.
* Fix for #4171 fix: don't wrap note references after SoftBreakAlexander Krotov2017-12-19
|
* Org writer: don't allow fn refs to wrap to beginning of line.John MacFarlane2017-12-18
| | | | | | Otherwise they can be interpreted as footnote definitions. Closes #4171.
* OPML reader: enable raw HTML and other extensions by default for notes.John MacFarlane2017-12-17
| | | | | | | | | This fixes a regression in 2.0. Note that extensions can now be individually disabled, e.g. `-f opml-smart-raw_html`. Closes #4164.
* Fixed regression in LateX tokenization.John MacFarlane2017-12-15
| | | | | This mainly affects the Markdown reader when parsing raw LaTeX with escaped spaces. Closes #4159.
* RST reader: more accurate parsing of references.John MacFarlane2017-12-14
| | | | | | | | | | | 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*`_
* Markdown: Improved computation of relative cell widths in pipe tables.John MacFarlane2017-12-12
|
* LaTeX reader: fix \ before newline.John MacFarlane2017-12-08
| | | | | | | | 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.
* Markdown reader: accept processing instructions as raw HTML.John MacFarlane2017-12-06
| | | | Closes #4125.
* Rewrite empty_paragraphs test so it will run on Windows.John MacFarlane2017-12-04
|
* Markdown reader: Don't parse native div as table caption.John MacFarlane2017-12-04
| | | | Closes #4119.
* Add `empty_paragraphs` extension.John MacFarlane2017-12-04
| | | | | | | | | | | | | | | | * 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.
* Test for #4113.John MacFarlane2017-12-03
| | | | Closes #4113.
* LaTeX writer: allow specifying just width or height for image size.John MacFarlane2017-12-01
| | | | | | | | | Previously both needed to be specified (unless the image was being resized to be smaller than its original size). If height but not width is specified, we now set width to textwidth (and similarly if width but not height is specified). Since we have keepaspectratio, this yields the desired result.
* Revert "LaTeX writer: Add keepaspectratio to includegraphics..."John MacFarlane2017-12-01
| | | | This reverts commit 171187a4527497701b3c77bd56cea2d770d4e3b0.
* LaTeX writer: Add keepaspectratio to includegraphics...John MacFarlane2017-11-30
| | | | ...if only one of height/width is given.
* Support beamer `\alert` in LaTeX reader. Closes #4091.John MacFarlane2017-11-29
|
* Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters.John MacFarlane2017-11-14
| | | | | | | | | This fixes a bug where pandoc would stop parsing a URI with an empty attribute: for example, `&a=&b=` wolud stop at `a`. (The uri parser tries to guess which punctuation characters are part of the URI and which might be punctuation after it.) Closes #4068.
* LaTeX reader: allow optional arguments on `\footnote`.John MacFarlane2017-11-13
| | | | Closes #4062.
* Markdown writer: fix bug with doubled footnotes in grid tables.John MacFarlane2017-11-13
| | | | Closes #4061.
* LaTeX reader: support column specs like `*{2}{r}`.John MacFarlane2017-11-12
| | | | | | This is equivalent to `rr`. We now expand it like a macro. Closes #4056.
* LaTeX reader: allow optional args for parbox.John MacFarlane2017-11-12
| | | | See #4056.
* Fixed YAML metadata with "chomp" (`|-`).John MacFarlane2017-11-11
| | | | | Previously if a YAML block under `|-` contained a blank line, pandoc would not parse it as metadata.
* Allow fenced code blocks to be indented 1-3 spaces.John MacFarlane2017-11-09
| | | | | | | This brings our handling of them into alignment with CommonMark's. Closes #??.
* Fix regression with --metadata.John MacFarlane2017-11-08
| | | | | | | It should replace a metadata value set in the document itself, rather than creating a list including a new value. Closes #4054.
* Fix strikethrough in gfm writer.John MacFarlane2017-11-04
| | | | | | | | | Previously we got a crash, because we were trying to print a native cmark STRIKETHROUGH node, and the commonmark writer in cmark-github doesn't support this. Work around this by using a raw node to add the strikethrough delimiters. Closes #4038.