aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2019-04-15RST writer: treat Span as transparent.John MacFarlane1-0/+6
Previously an Emph inside a Span was being treated as nested markup and ignored. With this patch, the Span is just ignored. Closes #5446.
2019-04-11LaTeX template: Add pdflang to hypersetup if lang is set.John MacFarlane1-0/+1
Closes #5443.
2019-04-05Vimwiki reader: improve handling of internal links.John MacFarlane1-8/+8
1) Don't append `.html` 2) Add `wikilink` title This mirrors behavior of other wiki readers. Generally the `.html` extension is not wanted. It may be important for output to HTML in certain circumstances, but it can always be added using a filter that matches on links with title `wikilink`. Note that if you have a workflow that uses pandoc to convert vimwiki to readable HTML pages, you may need to add such a filter to reproduce current behavior. Here is a filter that does the job: ```lua function Link(el) if el.title == 'wikilink' then el.target = el.target .. ".html" end return el end ``` Save this as `fixlinks.lua` and use with `--lua-filter fixlinks.lua`. Closes #5414.
2019-04-05PowerPoint writer: expand builtin reference doc to model all layoutsJesse Rosenthal22-0/+0
The previous built-in reference doc had only title and content layouts. Add in a section-header slide and a two-content slide, so users can more easily modify it to build their own templates. Golden files needed to be regenerated. Checked on MS PowerPoint 2013.
2019-04-04PowerPoint tests: Regenerate golden filesJesse Rosenthal36-0/+0
Due to viewProps change in 61dc0f9f. Golden files checked on PowerPoint 2013 (Win 10 on virtualbox).
2019-04-02Update command test #5416 to make it windows friendlyJohn MacFarlane1-2/+4
2019-04-02LaTeX template: Ensure correct heading/table order (#5421)Andrew Dunning4-45/+5
Improve the workaround for #1658, adapting a solution by @u-fischer in <https://github.com/latex3/latex2e/issues/131> that works whether or not the `indent` variable is enabled. Remove `subparagraph` variable in LaTeX template. The default is now to use run-in style for level 4 and 5 headings (`\paragraph` and `\subparagraph`). To get the previous default behavior (where these were formatted as blocks, like `\subsubsection`), set the `block-headings` variable. An example is given in the manual of reformatting the appearance of headings more thoroughly using KOMA-Script. Closes #5365.
2019-04-02Actually run the xwiki writer tests.John MacFarlane1-1/+2
2019-04-02Add XWiki Support (#4167)Derek Chen-Becker1-0/+650
Add XWiki Support Closes #1800
2019-04-01Dokuwiki Reader fix: parse single curly brace (#5417)Mauro Bieg1-0/+11
fixes #5416
2019-03-31PowerPoint writer: add test for speaker notes after metadata.Jesse Rosenthal4-0/+9
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