aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
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.
2018-10-28Roff tokenizer: better handling of escapes.John MacFarlane1-2/+2
2018-10-28Roff tokenizer: revamped font parsing using escapeArg.John MacFarlane1-1/+1
Add support for \C'...' escapes.
2018-10-28T.P.Lua: rename `runPandocLua` to `runLua` (API change)Albert Krewinkel1-10/+10
2018-10-28T.P.Lua: merge runLuaFilter into T.P.Filter.Lua (API change)Albert Krewinkel1-8/+7
The function `runLuaFilter` was only used in Text.Pandoc.Filter.Lua, use apply from the that module instead.
2018-10-27Man reader: allow block-level content in table cells.John MacFarlane2-1/+26
Closes #5028.
2018-10-28Muse: Make tables round-tripAlexander Krotov1-2/+16
2018-10-28Muse reader: try to parse lists before trying to parse tableAlexander Krotov1-0/+12
This ensures that tables inside lists are parsed correctly.
2018-10-27Remove misleading comment from Muse reader testsAlexander Krotov1-1/+0
pandoc follows Text::Amuse rules instead of being bug compatible with Emacs Muse
2018-10-27Muse reader: forbid whitespace after opening and before closing markup elementsAlexander Krotov1-2/+10
See https://github.com/melmothx/text-amuse/issues/44 for discussion on these rules
2018-10-26Muse reader: parse page breaksAlexander Krotov1-0/+8