aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2017-06-11Switched Writer types to use Text.John MacFarlane
* XML.toEntities: changed type to Text -> Text. * Shared.tabFilter -- fixed so it strips out CRs as before. * Modified writers to take Text. * Updated tests, benchmarks, trypandoc. [API change] Closes #3731.
2017-06-10Changed all readers to take Text instead of String.John MacFarlane
Readers: Renamed StringReader -> TextReader. Updated tests. API change.
2017-06-01HTML writer: Avoid two class attributes when adding 'uri' class.John MacFarlane
Closes #3716.
2017-06-01Markdown writer: Avoid inline surround-marking with empty content.John MacFarlane
E.g. we don't want `<strong></strong>` to become `****`. Similarly for emphasis, super/subscript, strikeout. Closes #3715.
2017-06-01LaTeX reader: handle some width specifiers on table columns.John MacFarlane
Currently we only handle the form `0.9\linewidth`. Anything else would have to be converted to a percentage, using some kind arbitrary assumptions about line widths. See #3709.
2017-06-01Add \colorbox supportMarc Schreiber
2017-05-31Org reader: respect export option for tagsAlbert Krewinkel
Tags are appended to headlines by default, but will be omitted when the `tags` export option is set to nil. Closes: #3713
2017-05-31Org reader: include tags in headlinesAlbert Krewinkel
The Emacs default is to include tags in the headline when exporting. Instead of just empty spans, which contain the tag name as attribute, tags are rendered as small caps and wrapped in those spans. Non-breaking spaces serve as separators for multiple tags.
2017-05-31Org reader: recognize babel result blocks with attributesAlbert Krewinkel
Babel result blocks can have block attributes like captions and names. Result blocks with attributes were not recognized and were parsed as normal blocks without attributes. Fixes: #3706
2017-05-29LaTeX reader: handle escaped & inside table cell.John MacFarlane
Closes #3708.
2017-05-28Org reader: Fix cite parsing behaviourHerwig Stuetz
Until now, org-ref cite keys included special characters also at the end. This caused problems when citations occur right before colons or at the end of a sentence. With this change, all non alphanumeric characters at the end of a cite key are ignored. This also adds `,` to the list of special characters that are legal in cite keys to better mirror the behaviour of org-export.
2017-05-27Markdown writer: changes to `--reference-links`.John MacFarlane
With `--reference-location` of `section` or `block`, pandoc will now repeat references that have been used in earlier sections. The Markdown reader has also been modified, so that *exactly* repeated references do not generate a warning, only references with the same label but different targets. The idea is that, with references after every block, one might want to repeat references sometimes. Closes #3701.
2017-05-27Org reader: subject full doc tree to headline transformationsAlbert Krewinkel
Emacs parses org documents into a tree structure, which is then post-processed during exporting. The reader is changed to do the same, turning the document into a single tree of headlines starting at level 0. Fixes: #3695
2017-05-25Allow em for image height/width in HTML, LaTeX.John MacFarlane
- Export `inEm` from ImageSize [API change]. - Change `showFl` and `show` instance for `Dimension` so extra decimal places are omitted. - Added `Em` as a constructor of `Dimension` [API change]. - Allow `em`, `cm`, `in` to pass through without conversion in HTML, LaTeX. Closes #3450.
2017-05-25Added `spaced_reference_links` extension.John MacFarlane
This is now the default for pandoc's Markdown. It allows whitespace between the two parts of a reference link: e.g. [a] [b] [b]: url This is now forbidden by default. Closes #2602.
2017-05-25Update command tests to include stderr output.John MacFarlane
2017-05-25Test.Command: put stderr output at front, so it can be tested.John MacFarlane
2017-05-25MediaWiki reader: don't do curly quotes inside `<tt>` contexts.John MacFarlane
Even if `+smart`. See #3585.
2017-05-24Markdown reader: fixed smart quotes after emphasis.John MacFarlane
E.g. in *foo*'s 'foo' Closes #2228.
2017-05-24Parsing: Provide parseFromString'.John MacFarlane
This is a verison of parseFromString specialied to ParserState, which resets stateLastStrPos at the end. This is almost always what we want. This fixes a bug where `_hi_` wasn't treated as emphasis in the following, because pandoc got confused about the position of the last word: - [o] _hi_ Closes #3690.
2017-05-23Add another test to make sure that textcolor parsing is working in the ↵Marc Schreiber
inside of a paragraph
2017-05-23Add suggestions of @jgm: parse bracketed stuff as inlinesMarc Schreiber
2017-05-23RST Reader: parse list table directive (#3688)keiichiro shikano
Closes #3432.
2017-05-20Improve SVG image size code.Marc Schreiber
The old code made some unwise assumptions about how the svg file would look. See #3580.
2017-05-19RST writer: add empty comments when needed...John MacFarlane
to avoid including a blocquote in the indented content of a preceding block. Closes #3675.
2017-05-18Org reader: fix smart parsing behaviorAlbert Krewinkel
Parsing of smart quotes and special characters can either be enabled via the `smart` language extension or the `'` and `-` export options. Smart parsing is active if either the extension or export option is enabled. Only smart parsing of special characters (like ellipses and en and em dashes) is enabled by default, while smart quotes are disabled. This means that all smart parsing features will be enabled by adding the `smart` language extension. Fine-grained control is possible by leaving the language extension disabled. In that case, smart parsing is controlled via the aforementioned export OPTIONS only. Previously, all smart parsing was disabled unless the language extension was enabled.
2017-05-18Test updates for latex template changes.John MacFarlane
2017-05-18Markdown: allow attributes in reference links to start on next line.John MacFarlane
This addresses a subsidiary issue in #3674.
2017-05-17Markdown writer: Fixed duplicated reference linksJohn MacFarlane
with `--reference-links` and `--reference-location=section`. Also ensure that there are no empty link references `[]`. Closes #3674.
2017-05-14Org reader: add basic file inclusion mechanismAlbert Krewinkel
Support for the `#+INCLUDE:` file inclusion mechanism was added. Recognized include types are *example*, *export*, *src*, and normal org file inclusion. Advanced features like line numbers and level selection are not implemented yet. Closes: #3510
2017-05-16Merge pull request #3671 from WUUUGI/horizont-spacingJohn MacFarlane
Added support for horizontal spacing in LaTeX
2017-05-15Textile reader: fix bug for certain links in table cells.John MacFarlane
Closes #3667.
2017-05-15Added support for horizontal spacing in LaTeX: parse \, to \8198 (six-per-em ↵Henri Werth
space)
2017-05-12Replace `repeat' and `take' with `replicate'Alexander Krotov
2017-05-11Combine grid table parsersAlbert Krewinkel
The grid table parsers for markdown and rst was combined into one single parser, slightly changing parsing behavior of both parsers: - The markdown parser now compactifies block content cell-wise: pure text blocks in cells are now treated as paragraphs only if the cell contains multiple paragraphs, and as plain blocks otherwise. Before, this was true only for single-column tables. - The rst parser now accepts newlines and multiple blocks in header cells. Closes: #3638
2017-05-09LaTeX: Load `parskip` before `hyperref`. (#3654)Václav Haisman
* LaTeX: Load `parskip` before `hyperref`. According to `hyperref` package's `README.pdf`, page 22, `hyperref` package should be loaded after `parskip` package. * Adjust tests for previous change.
2017-05-07Muse writer: Indent tables with one space (#3649)Alexander Krotov
It is required to trigger Muse table rendering.
2017-05-07Use fewer quickcheck tests for lua tests, to speed things up.John MacFarlane
2017-05-06Markdown reader: improved parsing of indented raw HTML blocks.John MacFarlane
Previously we inadvertently interpreted indented HTML as code blocks. This was a regression. We now seek to determine the indentation level of the contents of an HTML block, and (optionally) skip that much indentation. As a side effect, indentation may be stripped off of raw HTML blocks, if `markdown_in_html_blocks` is used. This is better than having things interpreted as indented code blocks. Closes #1841.
2017-05-06LaTeX reader: Better handling of comments inside math environments.John MacFarlane
This solves a problem with commented out `\end{eqnarray}` inside an eqnarray (among other things). Closes #3113.
2017-05-06Fix keyval funtion: pandoc did not parse options in braces correctly.… (#3642)schrieveslaach
* Fix keyval funtion: pandoc did not parse options in braces correctly. Additionally, dot, dash, and colon were no valid characters * Add | as possible option value * Improved code
2017-05-06ConTeXt template: improved font handling.John MacFarlane
simplefonts is now obsolete in ConTeXt. This patch comes from Pablo Rodríguez via jgm/pandoc-templates#247.
2017-05-06Org reader: support macrosAlbert Krewinkel
Closes: #3401
2017-05-04\textcolor will be parse as span at the beginning of a paragraphMarc Schreiber
2017-05-04Muse writer: omit automatic header identifiers (#3633)Alexander Krotov
2017-05-03Org reader: support table.el tablesAlbert Krewinkel
Closes #3314
2017-05-03\textcolor works as inline and block commandMarc Schreiber
2017-05-03Add block version of \textcolorMarc Schreiber
2017-05-03Markdown writer: better escaping for links (#3628)David A Roberts
Previously the Markdown writer would sometimes create links where there were none in the source. This is now avoided by selectively escaping bracket characters when they occur in a place where a link might be created. Closes #3619.
2017-05-03LaTeX reader: Add support for tabularx environment (#3632)schrieveslaach