aboutsummaryrefslogtreecommitdiff
path: root/test/command
AgeCommit message (Collapse)AuthorFilesLines
2017-05-19RST writer: add empty comments when needed...John MacFarlane1-0/+15
to avoid including a blocquote in the indented content of a preceding block. Closes #3675.
2017-05-18Markdown: allow attributes in reference links to start on next line.John MacFarlane1-0/+13
This addresses a subsidiary issue in #3674.
2017-05-17Markdown writer: Fixed duplicated reference linksJohn MacFarlane1-0/+26
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 Krewinkel4-0/+27
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-15Textile reader: fix bug for certain links in table cells.John MacFarlane1-0/+13
Closes #3667.
2017-05-11Combine grid table parsersAlbert Krewinkel1-2/+2
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-06Markdown reader: improved parsing of indented raw HTML blocks.John MacFarlane1-0/+42
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 MacFarlane1-0/+13
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)schrieveslaach1-0/+25
* 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-06Org reader: support macrosAlbert Krewinkel1-0/+19
Closes: #3401
2017-05-04\textcolor will be parse as span at the beginning of a paragraphMarc Schreiber1-0/+7
2017-05-03Org reader: support table.el tablesAlbert Krewinkel1-0/+34
Closes #3314
2017-05-03\textcolor works as inline and block commandMarc Schreiber1-8/+12
2017-05-03Add block version of \textcolorMarc Schreiber1-0/+11
2017-05-03Markdown writer: better escaping for links (#3628)David A Roberts1-0/+28
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)schrieveslaach1-0/+110
2017-05-03Markdown Writer: put space before reference link definitionsMauro Bieg1-0/+8
Fixes #3630 (#3631). Previously the attributes in link reference definitions did not have a space preceding.
2017-05-02Add basic \textcolor support to LaTeX readerMarc Schreiber1-0/+13
2017-05-02Markdown writer: Case-insensitive reference links. (#3616)David A Roberts1-0/+18
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.
2017-04-29LaTeX writer: Fix problem with escaping in lstinline.John MacFarlane2-1/+11
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.
2017-04-28LaTeX writer: don't use lstinline it \item[..].John MacFarlane1-0/+12
If you do, the contents of item disappear or are misplaced. Use `\texttt` instead. Closes #645.
2017-04-26LaTeX reader: Add basic support for hyphenat package (#3603)schrieveslaach1-0/+49
2017-04-26LaTeX reader: Add support for \vdots (#3607)schrieveslaach1-0/+12
2017-04-25LaTeX writer: fix error with line breaks after empty content.John MacFarlane1-0/+14
LaTeX requires something before a line break, so we insert a `~` if no printable content has yet been emitted. Closes #2874.
2017-04-24LaTeX reader: better support for subfigure package.John MacFarlane1-0/+35
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.
2017-04-23HTML reader: Revise treatment of li with id attribute.John MacFarlane1-0/+61
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.
2017-04-22Add siunitx Support (#3588)schrieveslaach1-0/+21
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} ```
2017-04-15Avoid parsing "Notes:**" as a bare URI.John MacFarlane1-0/+6
This avoids parsing bare URIs that start with a scheme + colon + `*`, `_`, or `]`. Closes #3570.
2017-04-12Man writer: Fix handling of nested font commands.John MacFarlane1-0/+15
Previously pandoc emitted incorrect markup for bold + italic, for example, or bold + code. Closes #3568.
2017-04-06Allow raw latex commands starting with `\start` in Markdown.John MacFarlane1-0/+8
Previously these weren't allowed because they were interpreted as starting ConTeXt environments, even without a corresponding \stop... Closes #3558.
2017-03-29lstinline with braces can be used (verb cannot be used with braces) (#3535)schrieveslaach1-0/+23
* Fix lstinline handling: lstinline with braces can be used (verb cannot be used with braces) * Use codeWith and determine the language from lstinline * Improve code * Add another test: convert lstinline without language option
2017-03-27LaTeX reader: add support for LaTeX subfiles package.schrieveslaach3-0/+38
Closes #3530.
2017-03-26Add blank lines to #3531 command test.John MacFarlane1-0/+2
2017-03-26MediaWiki writer: don't softbreak lines inside list items.John MacFarlane1-0/+19
Closes #3531.
2017-03-24Markdown writer: don't emit a simple table if `simple_tables` disabled.John MacFarlane1-0/+15
Closes #3529.
2017-03-23Pipe tables: impose minimum cell size.John MacFarlane1-0/+14
This might help with #3526. At any rate, it fixes another bug (see test/command/3526.md).
2017-03-22Added to issue 3516 command test to debug test failure on appveyor.John MacFarlane1-0/+36
2017-03-21Improve rendering of superscript in plain output.John MacFarlane1-0/+6
We now handle a few non digit characters (+, -, =, parentheses) for which there are superscripted unicode characters. Closes #3518.
2017-03-21RST writer: improve grid table output, fix bug with empty rows.John MacFarlane1-0/+15
Uses the new gridTable in Writers.Shared, which is here improved to better handle 0-width cells. Closes #3516.
2017-03-20Add `space_in_atx_header` extension.John MacFarlane1-0/+13
This is enabled by default in pandoc and GitHub markdown but not the other flavors. This requirse a space between the opening #'s and the header text in ATX headers (as CommonMark does but many other implementations do not). This is desirable to avoid falsely capturing things ilke #hashtag or #5 Closes #3512.
2017-03-19Removed failing part of 3348 test.John MacFarlane1-16/+0
This was failing because of a small discrepancy in markdown table header line lengths on appveyor. It's a minor issue, I can't see what is causing it, and it's irrelevant to the issue this is testing, so we'll just write native for this test.
2017-03-18HTML reader: Better sanity checks on raw HTML.John MacFarlane1-0/+13
This also affects the Markdown reader. Closes #3257.
2017-03-17Added test case to 3348 to try to figure out why appveyor build fails.John MacFarlane1-0/+18
2017-03-17Adjust command test 3348.md to specify column width.John MacFarlane1-1/+1
This is meant to address a test failure on appveyor.
2017-03-16Added test for #256.John MacFarlane2-0/+14
2017-03-13Better handling of \part in LaTeX.John MacFarlane1-0/+30
Closes #1905. Removed stateChapters from ParserState. Now we parse chapters as level 0 headers, and parts as level -1 headers. After parsing, we check for the lowest header level, and if it's less than 1 we bump everything up so that 1 is the lowest header level. So `\part` will always produce a header; no command-line options are needed.
2017-03-12Improved behavior of `auto_identifiers` when there are explicit ids.John MacFarlane1-0/+13
Previously only autogenerated ids were added to the list of header identifiers in state, so explicit ids weren't taken into account when generating unique identifiers. Duplicated identifiers could result. This simple fix ensures that explicitly given identifiers are also taken into account. Fixes #1745. Note some limitations, however. An autogenerated identifier may still coincide with an explicit identifier that is given for a header later in the document, or with an identifier on a div, span, link, or image. Fixing this would be much more difficult, because we need to run `registerHeader` before we have the complete parse tree (so we can't get a complete list of identifiers from the document by walking the tree). However, it might be worth issuing warnings for duplicate header identifiers; I think we can do that. It is not common for headers to have the same text, and the issue can always be worked around by adding explicit identifiers, if the user is aware of it.
2017-03-11Changed test case labeled 3384.md to 3348.md.John MacFarlane1-0/+0
The last commit referred to #3384, but should have closed #3348.
2017-03-11Markdown writer: fixed bugs in simple/multiline list output.John MacFarlane1-0/+15
* Previously we got overlong lists with `--wrap=none`. This is fixed. * Previously a multiline list could become a simple list (and would always become one with `--wrap=none`). Closes #3384.
2017-03-10Expand \newenvironment macros.John MacFarlane1-0/+12
Closes #987. Depends on still unreleased texmath 0.9.3.