aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2019-03-30Pptx writer: test for speaker notes after breaking header.Jesse Rosenthal4-0/+7
2019-03-29LaTeX writer: Avoid inadvertently creating ?` or !` ligatures.John MacFarlane1-0/+14
These are upside down ? and !, resp. Closes #5407.
2019-03-28Markdown reader: fenced div takes priority over setext header.John MacFarlane1-0/+9
For ::: {.cell} --- :::
2019-03-25LaTeX template: Add pandoc to PDF metadata (#5388)Andrew Dunning4-4/+4
Credits pandoc in content creator metadata (the default is 'LaTeX with hyperref').
2019-03-25HTML reader: read `data-foo` attribute into `foo`.John MacFarlane1-1/+1
The HTML writer adds the `data-` prefix for HTML5 for nonstandard attributes. But the attributes are represented in the AST without the `data-` prefix, so we should strip this when reading HTML. Closes #5392.
2019-03-22LaTeX template: Group graphics-related code (#5389)Andrew Dunning4-28/+12
* LaTeX template: Group graphics-related code The default figure placement was added in <https://github.com/jgm/pandoc/commit/f3ab4bc2b99e9f7f3917708a9110d6500aa051a0>; there does not appear to have been a reason for placing it at the end of the preamble. * Update tests
2019-03-22LaTeX writer: Fix footnotes in table caption and cells.John MacFarlane1-0/+44
This fixes a bug wherein footnotes appeared in the wrong order, and with duplicate numbers, when in table captions and cells. We now use regular `\footnote` commands, even in the table caption and the minipages containing cells. Apparently longtable knows how to handle this. Closes #5367.
2019-03-21Docx writer: Use w:br without attributes for line breaks.John MacFarlane2-0/+0
We previously added the attribute `type="textWrapping"`, but this causes problems on Word Online. Closes #5377.
2019-03-18Improved fix to #5340 and added test.John MacFarlane1-0/+14
2019-03-17Properly escape attributes in Markdown writer.John MacFarlane1-0/+7
Closes #5369.
2019-03-17Add test case for #5368.John MacFarlane1-0/+23
2019-03-13Tests.Old: specify --data-dir=../data.John MacFarlane1-3/+2
Remove old pandoc_datadir environment variable, which doesn't do anything.
2019-03-13 LaTeX template: Improve readability (#5363)Andrew Dunning4-40/+44
+ LaTeX template: Improve template readability Use `hidelinks` option for hyperref, which has the same effect as `pdfborder={0 0 0}`, but its purpose is clearer. Use a simpler conditional for Polyglossia/Babel. Format comments more consistently. + Update tests + Remove hyperref breaklinks option. According to the documentation, hyperref sets this automatically as appropriate to the driver.
2019-03-13LaTeX reader test: Allow compilation of file (#5364)Andrew Dunning1-9/+4
The test could not compile in LaTeX due to missing `setspace` package. Remove redundant packages.
2019-03-11docx writer: avoid extra copy of abstractNum and num elements...John MacFarlane27-0/+0
...in numbering.xml. This caused pandoc-produced docx files to be uneditable using Word Online. The problem was that recent versions of reference.docx include samples of various kinds of text, including lists. The numering elements for these were getting copied over to the new docx, where they clashed with the autogenerated elements produced by pandoc. This didn't confuse Desktop Word, but it did confuse Word Online. Closes #5358.
2019-03-09Include execution output in ipynb test.John MacFarlane4-8/+29
2019-03-09Ipynb reader/writer: better handling of cell metadata.John MacFarlane3-3/+8
We now handle even complex cell metadata in the Div's attributes. Simple metadata fields are rendered as a plain string, and complex ones as JSON.
2019-03-04 LaTeX template: Robust section numbering removal (#5351)Andrew Dunning4-4/+4
Ensures that section numbering does not reappear with custom section levels. See <https://tex.stackexchange.com/questions/473653/>. Update tests
2019-03-02Use XDG data directory for user data directory.John MacFarlane1-1/+1
Instead of `$HOME/.pandoc`, the default user data directory is now `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to `$HOME/.local/share` but can be overridden by setting the environment variable. If this directory is missing, then `$HOME/.pandoc` is searched instead, for backwards compatibility. However, we recommend moving local pandoc data files from `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the default user data directory remains the same. Closes #3582.
2019-02-27Powerpoint writer: add tests for underline.Jesse Rosenthal3-1/+1
2019-02-25Shared.compactify: Avoid mixed lists.John MacFarlane22-19/+42
This improves on the original fix to #5285 by preventing other mixed lists (lists with a mix of Plain and Para elements) that were allowed given the original fix.
2019-02-23JATS reader: fix parsing of figures.John MacFarlane1-0/+24
This ensures that a figure containing a single image is parsed as a pandoc "implicit figure" (i.e., a Para with a single Image whose title attribute begins with `fig:`). More complex figures will still be parsed as divs. Closes #5321.
2019-02-22Add section identifiers support for FB2 writer (#5315)John3-35/+35
Closes #5229.
2019-02-18Docx reader tests: fix test file with trailing space.Jesse Rosenthal1-1/+1
This failed due to the fix of #5273.
2019-02-18Docx reader: add tests for trimming last inline.Jesse Rosenthal3-0/+6
2019-02-18Muse reader: add secondary note supportAlexander Krotov1-0/+17
2019-02-18Muse writer: escape secondary notesAlexander Krotov1-0/+1
2019-02-15Markdown reader: fix bug parsing fenced code blocks.John MacFarlane1-0/+24
Previously parsing would break if the code block contained a string of backticks of sufficient length followed by something other than end of line. Closes #5304.
2019-02-12Docx reader: Add test for reading sdts in footnotes.Jesse Rosenthal3-0/+5
2019-02-10Use latest skylighting.John MacFarlane4-4/+4
2019-02-10JATS writer: wrap figure caption in <p> to fix validation (#5292)Mauro Bieg1-1/+1
closes #5290
2019-02-09Added simple ipynb reader/writer tests.John MacFarlane4-0/+98
Closes #5274.
2019-02-09Fixed asciidoc display math in list contexts.John MacFarlane2-2/+2
2019-02-09Asciidoctor writer sets the stem attribute if it contains latexmathTG1-0/+1
2019-02-09Adds Asciidoctor sprcific writer and testsTG3-1/+716
2019-02-09AsciiDoc Writer: DisplayMath as asciidoc latexmath blockTG1-1/+5
2019-02-08Improve tight/loose list handling.John MacFarlane1-0/+15
Closes #5285. Previously the algorithm allowed list items with a mix of Para and Plain, which is never wanted. compactify in T.P.Shared has been modified so that, if a list's items contain (at the top level) Para elements (aside from perhaps at the very end), ALL Plains are converted to Paras.
2019-02-06Docx reader: Tests for alternate document.xmlJesse Rosenthal3-2/+9
2019-02-06Muse reader: test that block level markup does not break <verbatim>Alexander Krotov1-0/+7
2019-02-04Add missing copyright notices and remove license boilerplate (#5112)Albert Krewinkel33-1/+365
Quite a few modules were missing copyright notices. This commit adds copyright notices everywhere via haddock module headers. The old license boilerplate comment is redundant with this and has been removed. Update copyright years to 2019. Closes #4592.
2019-02-04Markdown reader: add newline when parsing blocks in YAML.John MacFarlane1-0/+12
Otherwise last block gets parsed as a Plain rather than a Para. This is a regression in pandoc 2.x. This patch restores pandoc 1.19 behavior. Closes #5271.
2019-02-02Update test for last commit.John MacFarlane1-3/+3
2019-02-02HTML5 writer: implement WAI-ARIA roles for (end)notes.John MacFarlane1-10/+10
See #4213.
2019-02-01LaTeX writer: avoid `{}` after control sequences when escaping.John MacFarlane3-6/+5
`\ldots{}.` doesn't behave as well as `\ldots.` with the latex ellipsis package. This patch causes pandoc to avoid emitting the `{}` when it is not necessary. Now `\ldots` and other control sequences used in escaping will be followed by either a `{}`, a space, or nothing, depending on context. Thanks to Elliott Slaughter for the suggestion.
2019-01-31LaTeX reader: don't let `\egroup` match `{`.John MacFarlane1-0/+12
`braced` now actually requires nested braces. Otherwise some legitimate command and environment definitions can break (see test/command/tex-group.md).
2019-01-31Tests: avoid calling findPandoc multiple times.John MacFarlane3-194/+207
2019-01-31Old tests: remove need for temp files by using pipeProcess.John MacFarlane1-16/+6
2019-01-30Org reader: add support for #+SELECT_TAGS.leungbk3-0/+28
2019-01-26Improve writing metadata for docx, pptx and odt (#5252)Agustín Martín Barbero40-0/+26
* docx writer: support custom properties. Solves the writer part of #3024. Also supports additional core properties: `subject`, `lang`, `category`, `description`. * odt writer: improve standard properties, including the following core properties: `generator` (Pandoc/VERSION), `description`, `subject`, `keywords`, `initial-creator` (from authors), `creation-date` (actual creation date). Also fix date. * pptx writer: support custom properties. Also supports additional core properties: `subject`, `category`, `description`. * Includes golden tests. * MANUAL: document metadata support for docx, odt, pptx writers
2019-01-25MediaWiki reader: use `_` instead of `-` in auto-identifiers.John MacFarlane1-16/+16
Partially addresses #4731. We may not still be exactly matching mediawiki's algorithm for identifiers.