summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* Muse reader: fix horizontal rule parsing (#3762)Alexander Krotov2017-06-26
| | | Do not parse 3 dashes as horizontal rule and allow whitespace after rule
* Muse reader: Require space before and after '=' for code (#3758)Alexander Krotov2017-06-25
|
* Markdown reader: interpret YAML metadata as Inlines when possible.John MacFarlane2017-06-23
| | | | | | | | | | | | | | | | | If the metadata field is all on one line, we try to interpret it as Inlines, and only try parsing as Blocks if that fails. If it extends over one line (including possibly the `|` or `>` character signaling an indented block), then we parse as Blocks. This was motivated by some German users finding that date: '22. Juin 2017' got parsed as an ordered list. Closes #3755.
* Text.Pandoc.Extensions: Added `Ext_raw_attribute`.John MacFarlane2017-06-23
| | | | | | Documented in MANUAL.txt. This is enabled by default in pandoc markdown and multimarkdown.
* Muse reader: check that headers start at the first column (#3749)Alexander Krotov2017-06-20
|
* Fixed footnotes in table captions.John MacFarlane2017-06-20
| | | | | | | | Note that if the table has a first page header and a continuation page header, the notes will appear only on the first occurrence of the header. Closes #2378.
* Muse reader: fix list item continuation parsing (#3747)Alexander Krotov2017-06-19
|
* Added Vimwiki reader (#3705).Yuchen Pei2017-06-19
| | | | | | * New module Text.Pandoc.Readers.Vimwiki, exporting readVimwiki [API change]. * New input format `vimwiki`. * New data file, `data/vimwiki.css`, for displaying the HTML produced by this reader and pandoc's HTML writer in the style of vimwiki's own HTML export.
* Add Muse reader (#3620)Alexander Krotov2017-06-19
|
* Markdown writer: don't allow soft break in header.John MacFarlane2017-06-12
| | | | Closes #3736.
* Don't allow backslash + newline to affect block structure.John MacFarlane2017-06-11
| | | | | | | | | | | | | | | | | | | | Note that as a result of this change, the following, which formerly produced a header with two lines separated by a line break, will now produce a header followed by a paragraph: # Hi\ there This may affect some existing documents that relied on this undocumented and unintended behavior. This change makes pandoc more consistent with other Markdown implementations, and with itself (since the two-space version of a line break doesn't work inside ATX headers, and neither version works inside Setext headers). Closes #3730.
* Revert "Command tests: small change to try to fix appveyor failures."John MacFarlane2017-06-11
| | | | | | This reverts commit 0ab26ac9ebb0196691ec064820eac4e640f0d52c. Failed experiment.
* Command tests: small change to try to fix appveyor failures.John MacFarlane2017-06-11
|
* Support for \faCheck and \faClose (#3727)schrieveslaach2017-06-11
|
* Switched Writer types to use Text.John MacFarlane2017-06-11
| | | | | | | | | | | * 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.
* Changed all readers to take Text instead of String.John MacFarlane2017-06-10
| | | | | | | | Readers: Renamed StringReader -> TextReader. Updated tests. API change.
* HTML writer: Avoid two class attributes when adding 'uri' class.John MacFarlane2017-06-01
| | | | Closes #3716.
* Markdown writer: Avoid inline surround-marking with empty content.John MacFarlane2017-06-01
| | | | | | | E.g. we don't want `<strong></strong>` to become `****`. Similarly for emphasis, super/subscript, strikeout. Closes #3715.
* LaTeX reader: handle some width specifiers on table columns.John MacFarlane2017-06-01
| | | | | | | | 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.
* Org reader: respect export option for tagsAlbert Krewinkel2017-05-31
| | | | | | | Tags are appended to headlines by default, but will be omitted when the `tags` export option is set to nil. Closes: #3713
* Org reader: include tags in headlinesAlbert Krewinkel2017-05-31
| | | | | | | 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.
* Org reader: recognize babel result blocks with attributesAlbert Krewinkel2017-05-31
| | | | | | | | 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
* LaTeX reader: handle escaped & inside table cell.John MacFarlane2017-05-29
| | | | Closes #3708.
* Org reader: Fix cite parsing behaviourHerwig Stuetz2017-05-28
| | | | | | | | | | | | 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.
* Markdown writer: changes to `--reference-links`.John MacFarlane2017-05-27
| | | | | | | | | | | | | | | 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.
* Org reader: subject full doc tree to headline transformationsAlbert Krewinkel2017-05-27
| | | | | | | | | 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
* Allow em for image height/width in HTML, LaTeX.John MacFarlane2017-05-25
| | | | | | | | | | | - 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.
* Added `spaced_reference_links` extension.John MacFarlane2017-05-25
| | | | | | | | | | | | | | 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.
* Update command tests to include stderr output.John MacFarlane2017-05-25
|
* Test.Command: put stderr output at front, so it can be tested.John MacFarlane2017-05-25
|
* MediaWiki reader: don't do curly quotes inside `<tt>` contexts.John MacFarlane2017-05-25
| | | | | | Even if `+smart`. See #3585.
* Markdown reader: fixed smart quotes after emphasis.John MacFarlane2017-05-24
| | | | | | | | E.g. in *foo*'s 'foo' Closes #2228.
* Parsing: Provide parseFromString'.John MacFarlane2017-05-24
| | | | | | | | | | | | | | 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.
* RST Reader: parse list table directive (#3688)keiichiro shikano2017-05-23
| | | | Closes #3432.
* Improve SVG image size code.Marc Schreiber2017-05-20
| | | | | | | The old code made some unwise assumptions about how the svg file would look. See #3580.
* RST writer: add empty comments when needed...John MacFarlane2017-05-19
| | | | | | | to avoid including a blocquote in the indented content of a preceding block. Closes #3675.
* Org reader: fix smart parsing behaviorAlbert Krewinkel2017-05-18
| | | | | | | | | | | | | | | | 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.
* Test updates for latex template changes.John MacFarlane2017-05-18
|
* Markdown: allow attributes in reference links to start on next line.John MacFarlane2017-05-18
| | | | This addresses a subsidiary issue in #3674.
* Markdown writer: Fixed duplicated reference linksJohn MacFarlane2017-05-17
| | | | | | | with `--reference-links` and `--reference-location=section`. Also ensure that there are no empty link references `[]`. Closes #3674.
* Org reader: add basic file inclusion mechanismAlbert Krewinkel2017-05-14
| | | | | | | | | 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
* Merge pull request #3671 from WUUUGI/horizont-spacingJohn MacFarlane2017-05-16
|\ | | | | Added support for horizontal spacing in LaTeX
| * Added support for horizontal spacing in LaTeX: parse \, to \8198 (six-per-em ↵Henri Werth2017-05-15
| | | | | | | | space)
* | Textile reader: fix bug for certain links in table cells.John MacFarlane2017-05-15
|/ | | | Closes #3667.
* Replace `repeat' and `take' with `replicate'Alexander Krotov2017-05-12
|
* Combine grid table parsersAlbert Krewinkel2017-05-11
| | | | | | | | | | | | | | | 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
* LaTeX: Load `parskip` before `hyperref`. (#3654)Václav Haisman2017-05-09
| | | | | | | | | * 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.
* Muse writer: Indent tables with one space (#3649)Alexander Krotov2017-05-07
| | | It is required to trigger Muse table rendering.
* Use fewer quickcheck tests for lua tests, to speed things up.John MacFarlane2017-05-07
|
* Markdown reader: improved parsing of indented raw HTML blocks.John MacFarlane2017-05-06
| | | | | | | | | | | | | | | 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.