summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* 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.
* LaTeX reader: Better handling of comments inside math environments.John MacFarlane2017-05-06
| | | | | | | This solves a problem with commented out `\end{eqnarray}` inside an eqnarray (among other things). Closes #3113.
* Fix keyval funtion: pandoc did not parse options in braces correctly.… (#3642)schrieveslaach2017-05-06
| | | | | | | | * 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
* ConTeXt template: improved font handling.John MacFarlane2017-05-06
| | | | | | simplefonts is now obsolete in ConTeXt. This patch comes from Pablo Rodríguez via jgm/pandoc-templates#247.
* Org reader: support macrosAlbert Krewinkel2017-05-06
| | | | Closes: #3401
* Muse writer: omit automatic header identifiers (#3633)Alexander Krotov2017-05-04
|
* Org reader: support table.el tablesAlbert Krewinkel2017-05-03
| | | | Closes #3314
* Markdown writer: better escaping for links (#3628)David A Roberts2017-05-03
| | | | | | | 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.
* LaTeX reader: Add support for tabularx environment (#3632)schrieveslaach2017-05-03
|
* Markdown Writer: put space before reference link definitionsMauro Bieg2017-05-03
| | | | | | | Fixes #3630 (#3631). Previously the attributes in link reference definitions did not have a space preceding.
* Markdown writer: Case-insensitive reference links. (#3616)David A Roberts2017-05-02
| | | | | | | | | Ensure that we do not generate reference links whose labels differ only by case. Also allow implicit reference links when the link text and label are identical up to case. Closes #3615.
* Lua filter: fall-back to global filters when none is returnedAlbert Krewinkel2017-04-30
| | | | | | | | | The implicitly defined global filter (i.e. all element filtering functions defined in the global lua environment) is used if no filter is returned from a lua script. This allows to just write top-level functions in order to define a lua filter. E.g function Emph(elem) return pandoc.Strong(elem.content) end
* LaTeX writer: Fix problem with escaping in lstinline.John MacFarlane2017-04-29
| | | | | | | | | | | | | | | | | | Previously the LaTeX writer created invalid LaTeX when `--listings` was specified and a code span occured inside emphasis or another construction. This is because the characters `%{}\` must be escaped in lstinline when the listinline occurs in another command, otherwise they must not be escaped. To deal with this, adoping Michael Kofler's suggestion, we always wrap lstinline in a dummy command `\passthrough`, now defined in the default template if `--listings` is specified. This way we can consistently escape the special characters. Closes #1629.
* LaTeX writer: don't use lstinline it \item[..].John MacFarlane2017-04-28
| | | | | | | If you do, the contents of item disappear or are misplaced. Use `\texttt` instead. Closes #645.
* Lua module: provide simple `read` format parserAlbert Krewinkel2017-04-26
| | | | | | A single `read` function parsing pandoc-supported formats is added to the module. This is simpler and more convenient than the previous method of exposing all reader functions individually.
* Lua filter: allow filtering of meta data onlyAlbert Krewinkel2017-04-26
|
* LaTeX reader: Add basic support for hyphenat package (#3603)schrieveslaach2017-04-26
|
* LaTeX reader: Add support for \vdots (#3607)schrieveslaach2017-04-26
|
* HTML line block: Use class instead of style attribute.John MacFarlane2017-04-25
| | | | | | | | | We now issue `<div class="line-block">` and include a default definition for `line-block` in the default templates, instead of hard-coding a `style` on the div. Closes #1623.
* LaTeX writer: fix error with line breaks after empty content.John MacFarlane2017-04-25
| | | | | | | LaTeX requires something before a line break, so we insert a `~` if no printable content has yet been emitted. Closes #2874.
* LaTeX reader: better support for subfigure package.John MacFarlane2017-04-24
| | | | | | | | A figure with two subfigures turns into two pandoc figures; the subcaptions are used and the main caption ignored, unless there are no subcaptions. Closes #3577.
* Org reader: allow multi-word arguments to src block paramsAlbert Krewinkel2017-04-23
| | | | | | | The reader now correctly parses src block parameter list even if parameter arguments contain multiple words. Closes: #3477
* Org reader: stop adding rundoc prefix to src paramsAlbert Krewinkel2017-04-23
| | | | | | | | | | | Source block parameter names are no longer prefixed with *rundoc*. This was intended to simplify working with the rundoc project, a babel runner. However, the rundoc project is unmaintained, and adding those markers is not the reader's job anyway. The original language that is specified for a source element is now retained as the `data-org-language` attribute and only added if it differs from the translated language.
* Org reader: handle line numbering switch for src blocksAlbert Krewinkel2017-04-23
| | | | | | | The line-numbering switch that can be given to source blocks (`-n` with an start number as an optional parameter) is parsed and translated to a class/key-value combination used by highlighting and other readers and writers.
* HTML reader: Revise treatment of li with id attribute.John MacFarlane2017-04-23
| | | | | | | | | | | | | | | | Previously we always added an empty div before the list item, but this created problems with spacing in tight lists. Now we do this: If the list item contents begin with a Plain block, we modify the Plain block by adding a Span around its contents. Otherwise, we add a Div around the contents of the list item (instead of adding an empty Div to the beginning, as before). Closes #3596.
* Add siunitx Support (#3588)schrieveslaach2017-04-22
| | | | | | | | | | | For example: ```latex \SI[round-precision=2]{1}{m} is equal to \SI{1000}{mm}. \SI[round-precision=2]{1}[\$]{} is equal to \SI{0.938094}{\euro} ```
* Org reader: allow emphasized text to be followed by `[`Albert Krewinkel2017-04-16
| | | | Closes: #3577
* Org reader: convert markup at beginning of footnotesAlbert Krewinkel2017-04-16
| | | | Closes: #3576
* Lua filter: revert to non-destructuring filtersAlbert Krewinkel2017-04-15
| | | | | We want to provide an interface familiar to users of other filtering libraries.
* Avoid parsing "Notes:**" as a bare URI.John MacFarlane2017-04-15
| | | | | | | This avoids parsing bare URIs that start with a scheme + colon + `*`, `_`, or `]`. Closes #3570.
* Lua filter: allow shorthand functions for math and quotedAlbert Krewinkel2017-04-14
| | | | | Allow to use functions named `SingleQuoted`, `DoubleQuoted`, `DisplayMath`, and `InlineMath` in filters.
* Lua filter: use destructured functions for block filtersAlbert Krewinkel2017-04-14
| | | | | | Filtering functions take element components as arguments instead of the whole block elements. This resembles the way elements are handled in custom writers.
* Use lua constructors to push meta valuesAlbert Krewinkel2017-04-13
|
* Lua filter: use destructured functions for inline filtersAlbert Krewinkel2017-04-12
| | | | | | Instead of taking the whole inline element, forcing users to destructure it themselves, the components of the elements are passed to the filtering functions.
* Man writer: Fix handling of nested font commands.John MacFarlane2017-04-12
| | | | | | | Previously pandoc emitted incorrect markup for bold + italic, for example, or bold + code. Closes #3568.
* Lua filter: improve doc filter performanceAlbert Krewinkel2017-04-07
| | | | | Pandoc elements are pushed and pulled from the lua stack via custom instances.