summaryrefslogtreecommitdiff
path: root/test/command
AgeCommit message (Collapse)Author
2017-12-28LaTeX reader: be more tolerant of `&` character.John MacFarlane
This allows us to parse unknown tabular environments as raw LaTeX. Closes #4208.
2017-12-27Merge pull request #4184 from mb21/html-reader-figcaptionJohn MacFarlane
HTML Reader: be more forgiving about figcaption
2017-12-27HTML reader: parse div with class `line-block` as LineBlock.John MacFarlane
See #4162.
2017-12-26LaTeX reader: support `\foreignlanguage` from babel.John MacFarlane
2017-12-24RST reader: allow empty list items (as docutils does).John MacFarlane
Closes #4193.
2017-12-23HTML Reader: be more forgiving about figcaptionmb21
fixes #4183
2017-12-22`latex_macros` extension changes.John MacFarlane
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-22Markdown reader: improved raw tex parsing.John MacFarlane
+ Preserve original whitespace between blocks. + Recognize `\placeformula` as context.
2017-12-22RST writer: fix anchors for headers.John MacFarlane
We were missing an `_`. See #4188.
2017-12-21Org writer: do not wrap "-" to avoid accidental bullet listsAlexander Krotov
Also add TODO for ordered lists.
2017-12-19Muse writer: don't wrap note references to the next lineAlexander Krotov
Closes #4172.
2017-12-19Fix for #4171 fix: don't wrap note references after SoftBreakAlexander Krotov
2017-12-18Org writer: don't allow fn refs to wrap to beginning of line.John MacFarlane
Otherwise they can be interpreted as footnote definitions. Closes #4171.
2017-12-17OPML reader: enable raw HTML and other extensions by default for notes.John MacFarlane
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-15Fixed regression in LateX tokenization.John MacFarlane
This mainly affects the Markdown reader when parsing raw LaTeX with escaped spaces. Closes #4159.
2017-12-14RST reader: more accurate parsing of references.John MacFarlane
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-12Markdown: Improved computation of relative cell widths in pipe tables.John MacFarlane
2017-12-08LaTeX reader: fix \ before newline.John MacFarlane
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-06Markdown reader: accept processing instructions as raw HTML.John MacFarlane
Closes #4125.
2017-12-04Rewrite empty_paragraphs test so it will run on Windows.John MacFarlane
2017-12-04Markdown reader: Don't parse native div as table caption.John MacFarlane
Closes #4119.
2017-12-04Add `empty_paragraphs` extension.John MacFarlane
* 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-03Test for #4113.John MacFarlane
Closes #4113.
2017-12-01LaTeX writer: allow specifying just width or height for image size.John MacFarlane
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.
2017-12-01Revert "LaTeX writer: Add keepaspectratio to includegraphics..."John MacFarlane
This reverts commit 171187a4527497701b3c77bd56cea2d770d4e3b0.
2017-11-30LaTeX writer: Add keepaspectratio to includegraphics...John MacFarlane
...if only one of height/width is given.
2017-11-29Support beamer `\alert` in LaTeX reader. Closes #4091.John MacFarlane
2017-11-14Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters.John MacFarlane
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.
2017-11-13LaTeX reader: allow optional arguments on `\footnote`.John MacFarlane
Closes #4062.
2017-11-13Markdown writer: fix bug with doubled footnotes in grid tables.John MacFarlane
Closes #4061.
2017-11-12LaTeX reader: support column specs like `*{2}{r}`.John MacFarlane
This is equivalent to `rr`. We now expand it like a macro. Closes #4056.
2017-11-12LaTeX reader: allow optional args for parbox.John MacFarlane
See #4056.
2017-11-11Fixed YAML metadata with "chomp" (`|-`).John MacFarlane
Previously if a YAML block under `|-` contained a blank line, pandoc would not parse it as metadata.
2017-11-09Allow fenced code blocks to be indented 1-3 spaces.John MacFarlane
This brings our handling of them into alignment with CommonMark's. Closes #??.
2017-11-08Fix regression with --metadata.John MacFarlane
It should replace a metadata value set in the document itself, rather than creating a list including a new value. Closes #4054.
2017-11-04Fix strikethrough in gfm writer.John MacFarlane
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.
2017-11-02Improved support for columns in HTML.John MacFarlane
* Move as much as possible to the CSS in the template. * Ensure that all the HTML-based templates (including epub) contain the CSS for columns. * Columns default to 50% width unless they are given a width attribute. Closes #4028.
2017-11-02Fixed revealjs slide column width issues.John MacFarlane
* Remove "width" attribute which is not allowed on div. * Remove space between `<div class="column">` elements, since this prevents columns whose widths sum to 100% (the space takes up space). Closes #4028.
2017-11-01Really fix #3989.John MacFarlane
The previous fix only worked in certain cases. Other cases with `>` in an HTML attribute broke.
2017-11-01Updated command test for #3989.John MacFarlane
We didn't fix it completely before.
2017-10-31Fixed regression in parsing of HTML comments in markdown...John MacFarlane
and other non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`). The parser stopped at the first `>` character, even if it wasn't the end of the comment. Closes #4019.
2017-10-31Add Millimeter constructor to Dimension in ImageSize.John MacFarlane
Minor API change. Now sizes given in 'mm' are no longer converted to 'cm'. Closes #4012.
2017-10-31LaTeX reader: handle `%` comment right after command.John MacFarlane
For example \emph% {hi}
2017-10-31Markdown reader: make sure fenced div closers work in lists.John MacFarlane
Previously the following failed: ::: {.class} 1. one 2. two ::: and you needed a blank line before the closing `:::`.
2017-10-31Make `fenced_divs` affect the Markdown writer.John MacFarlane
If `fenced_divs` is enabled, fenced divs will be used.
2017-10-30Added failing command test for #4007.John MacFarlane
2017-10-24Fenced divs: ensure that paragraph at end doesn't become Plain.John MacFarlane
Added test case.
2017-10-23Back to using [WARNING] and [INFO] to mark messages.John MacFarlane
2017-10-23Implemented fenced Divs.John MacFarlane
+ Added Ext_fenced_divs to Extensions (default for pandoc Markdown). + Document fenced_divs extension in manual. + Implemented fenced code divs in Markdown reader. + Added test. Closes #168.
2017-10-23HTML reader: `htmlTag` improvements.John MacFarlane
We previously failed on cases where an attribute contained a `>` character. This patch fixes the bug. Closes #3989.