aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2018-12-28Org writer: preserve line-numbering for example and code blocks.leungbk1-0/+41
2018-12-25Muse reader tests: test #cover directiveAlexander Krotov1-0/+5
2018-12-14Remove unnecessary type="text/css" on style and link for HTML5.John MacFarlane3-5/+5
Closes #5146.
2018-12-13Man/Ms writers: don't escape `-` as `\-`.John MacFarlane2-19/+19
For discussion see https://groups.google.com/forum/#!msg/pandoc-discuss/B-oiCXcQOVo/WO-BXVpICAAJ The `\-` gets rendered in HTML and PDF as a unicode minus sign.
2018-12-11template:latex: make @ letter before using it (#5145)Enno4-16/+28
This fixes the previous commit for parskip and KOMA classes.
2018-12-11Let KOMA document class handle parskip when applicable (#5143)Enno4-24/+28
This is just a change to the default latex template.
2018-12-10Docx: add test for lists with level overrides.Jesse Rosenthal3-0/+41
2018-12-05RST writer: don't wrap simple table header lines.John MacFarlane1-0/+18
Closes #5128.
2018-12-04Strip out illegal XML characters in escapeXMLString.John MacFarlane1-0/+9
Closes #5119.
2018-12-03Markdown writer: include needed whitespace after HTML figure.John MacFarlane1-0/+13
We use HTML for a figure in markdown dialects that can't represent it natively. Closes #5121.
2018-11-29Fix custom tests.John MacFarlane1-8/+8
2018-11-27MediaWiki writer: fix caption, use 'thumb' instead of 'frame'.John MacFarlane1-1/+1
Captions used to have the word 'caption' prepended; this has been removed. Also, 'thumb' is used instead of 'frame' to allow images to be resized. Closes #5105.
2018-11-25Added test for #5053.John MacFarlane1-0/+14
Note that the fix for #5099 also fixes #5053, a pandoc 2.4 regression in parsing underscore emphasis after symbols.
2018-11-25Fix parsing of citations and quotes after parentheses.John MacFarlane3-13/+15
Starting with pandoc 2.4, citations and quoted inlines were no longer recognized after parentheses. This is because of commit 9b0bd4ec6f5c9125efb3e36232e6d1f6ac08a728, which is reverted here. The point of that commit was to allow relocation of soft line breaks to before an abbreviation, so that a nonbreaking space could be added after the abbreviation. Now we simply leave the soft line break in place, even though this means that we won't get a nonbreaking space after "Mr." at the end of a line (and in LaTeX this may result in a longer intersentential space). Those who care about this issue should take care not to end lines with an abbreviation, or to insert nonbreaking spaces manually. Closes #5099.
2018-11-22OpenDocument writer: small amendment to #5095.John MacFarlane1-189/+189
Level one lists should start at 0.5in rather than 0.75in. (At least this is how LibreOffice behaves for me with a new document.)
2018-11-22ODT writer: Fix list indentationNils Carlson1-189/+189
Previously lists were indented by half an inch on the first line for each level of nesting. This resulted in lists that looked like this: 1. The first line of the list point text the second line of the same list point. Fix this and bring style into line with libreoffice standards: 1. The first line of the list point text the second line of the list point text.
2018-11-20Fix markdown-citations test for new abbreviations changes.John MacFarlane1-2/+2
2018-11-20Docx writer: Fix bookmarks to headers with long titles.John MacFarlane1-0/+0
Word has a 40 character limit for bookmark names. In addition, bookmarks must begin with a letter. Since pandoc's auto-generated identifiers may not respect these constraints, some internal links did not work. With this change, pandoc uses a bookmark name based on the SHA1 hash of the identifier when the identifier isn't a legal bookmark name. Closes #5091.
2018-11-19AsciiDoc writer: improve ordered lists.John MacFarlane1-39/+56
Use `.`+ as list markers to support nested ordered lists. Closes #5087. Support list number styles. Closes #5089.
2018-11-16HTML reader: allow tfoot before body rows.John MacFarlane1-0/+16
Closes #5079.
2018-11-15HTML reader: parse `<small>` as a Span with class "small".John MacFarlane1-0/+7
Closes #5080.
2018-11-15Asciidoc writer: Render Spans using `[#id .class]#contents#`.John MacFarlane1-0/+6
See #5080.
2018-11-14Muse reader: trim whitespace before parsing grid table cellsAlexander Krotov1-0/+11
2018-11-14Muse reader: add grid tables supportAlexander Krotov1-0/+43
2018-11-14Muse writer: indent simple tables only on the top levelAlexander Krotov1-0/+6
2018-11-13Fix test case for #5014.John MacFarlane1-1/+3
2018-11-13HTML reader: allow thead containing a row with td rather than th.John MacFarlane1-0/+17
See #5014. Note that this doesn't address the original issue in #5014, only an unrelated side-issue.
2018-11-13Muse writer: output tables with one column as grid tablesAlexander Krotov1-0/+12
2018-11-12LaTeX writer: don't emit `[<+->]` unless beamer output,John MacFarlane1-0/+14
even if `writerIncremental` is True. See #5072.
2018-11-11Exactly match GitHub's identifier generating algorithm.John MacFarlane1-0/+4
See #5057.
2018-11-11Text.Pandoc.Shared: add parameter to uniqueIdent, inlineListToIdentifier.John MacFarlane1-4/+4
The parameter is Extensions. This allows these functions to be sensitive to the settings of `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`. This allows us to use `uniqueIdent` in the CommonMark reader, replacing some custom code. It also means that `gfm_auto_identifiers` can now be used in all formats. Semantically, `gfm_auto_identifiers` is now a modifier of `auto_identifiers`; for identifiers to be set, `auto_identifiers` must be turned on, and then the type of identifier produced depends on `gfm_auto_identifiers` and `ascii_identifiers` are set. Closes #5057.
2018-11-07Texinfo writer: add blank line before `@menu` section.John MacFarlane1-0/+8
Closes #5055.
2018-11-06Add command test for #5050.John MacFarlane1-0/+7
2018-11-06ICML writer: consolidate adjacent strings, inc. spaces.John MacFarlane1-128/+23
This avoids chunking up the output unnecessarily into separate elements.
2018-11-06Use OverloadedStrings extension to simplify Muse writer testsAlexander Krotov1-201/+203
2018-11-05CommonMark writer: respect --ascii (#5043)quasicomputational1-0/+36
2018-11-04XML: toHtml5Entities: prefer shorter entities...John MacFarlane1-2/+2
when there are several choices for a particular character.
2018-11-05Muse writer: add support for --reference-location=Alexander Krotov1-3/+85
Address #107
2018-11-03AsciiDoc writer: use single-line section headers.John MacFarlane1-63/+32
The underline style is now deprecated. Previously `--atx-headers` would enable the single-line style; now the single-line style is always used. Closes #5038.
2018-11-02table testsYan Pashkovsky1-0/+11
2018-11-02Roff reader: Improved handling of custom strings as arguments.John MacFarlane1-0/+27
Added test.
2018-11-02grofftest.sh - set resource path more appropriately.John MacFarlane1-1/+1
2018-11-02Improve test/grofftest.sh.John MacFarlane1-12/+16
Use --resource-path. Use iconv for latin1 man pages. Recurse into subdirectories.
2018-11-01Implement --ascii for Markdown writer.John MacFarlane1-0/+8
2018-11-01HTML writer: use character entities references when possible for HTML5.John MacFarlane1-1/+1
2018-10-31ZimWiki writer: number ordered list items sequentially...John MacFarlane1-20/+20
rather than always with 1.
2018-10-31LaTeX writer: add newline if math ends in a comment.John MacFarlane1-0/+7
This prevents the closing delimiter from being swalled up in the comment. Closes #4880.
2018-10-30Roff reader: properly handle unknown backslash escapes.John MacFarlane1-0/+2
They are treated as regular characters, according to groff 7. Cloess #5034.
2018-10-29ZimWiki writer: remove extra indentation on lists.John MacFarlane1-88/+88
Closes #4963.
2018-10-29LaTeX reader: allow space at end of math after `\`.John MacFarlane1-0/+21
Closes #5010. Expose trimMath from T.P.Shared.