aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2018-10-21Muse reader: allow empty headersAlexander Krotov1-0/+7
Previously empty headers caused parser to terminate without parsing the rest of the document.
2018-10-20Man reader: Fix .B, .I, .BR, etc.John MacFarlane1-1/+4
2018-10-20Man reader: major restructuring, support macros.John MacFarlane2-5/+5
- Improved support for custom macro definitions. - LinePart type has been added. RoffStr is now one constructor of LinePart (the other being MacroArg). - MComment has lost its argument. - MEndMacro has been removed. - MStr has been removed (we now simply use LinePart). - Macros now store a list of tokens. - Each macro argument is a [LinePart], instead of a LinePart. - .BR now behaves as documented in man (and doesn't create a link).
2018-10-20Man reader: block quotes (using RS..RE).John MacFarlane2-2/+4
2018-10-20Man reader: parse TP as definition lists.John MacFarlane2-1/+19
Closes #4981.
2018-10-20Man reader: handle shift in list style.John MacFarlane1-6/+10
Closes #4987.
2018-10-20Powerpoint tests: test raw openxmlJesse Rosenthal4-1/+7
Output files confirmed not to be corrupt, and with content as expected, on PowerPoint 2013 on Windows 10 (virtualbox on linux).
2018-10-19Man reader: improve treatment of .TH.John MacFarlane1-3/+2
This should just add to metadata (title, date, section), and not produce a level-1 header. (That might be done in the template, depending on the output format.)
2018-10-19Man reader: Improved header parsing.John MacFarlane2-14/+14
- .SH should be level 1, .SS level 2. - The header title can come on the next line.
2018-10-19Man writer: avoid unnecessary `.RS`/`.RE` pair in defn lists.John MacFarlane1-38/+0
When the definition is just one paragraph, we don't need the `.RS\n.RE`.
2018-10-19Man reader: properly handle multi-block list items.John MacFarlane2-31/+31
Closes #4985.
2018-10-19Man reader: Added more tests for escapes.John MacFarlane1-6/+11
Closes #4983.
2018-10-19Man reader: minor improvements.John MacFarlane2-7/+13
use `trimInlines` for Para content to avoid leading and trailing spaces. Fix handling of \" in middle of line. Add more tests for escapes.
2018-10-19More man reader test updates.John MacFarlane1-6/+6
2018-10-19Update tests for last change to man reader.John MacFarlane1-42/+42
2018-10-18Update man reader tests.John MacFarlane3-32/+30
2018-10-18GroffChar: fixed interpretation of `\-`.John MacFarlane2-19/+19
It is the ascii - sign, not the unicode hyphen.
2018-10-18Merge branch 'Yanpas-groff_reader'John MacFarlane6-0/+394
2018-10-18Groff escaping changes.John MacFarlane5-44/+44
- `--ascii` is now turned on automatically for man output, for portability. All man output will be escaped to ASCII. - In T.P.Writers.Groff, `escapeChar`, `escapeString`, and `escapeCode` now take a boolean parameter that selects ascii-only output. This is used by the Ms writer for `--ascii`, instead of doing an extra pass after writing the document. - In ms output without `--ascii`, unicode is used whenever possible (e.g. for double quotes). - A few escapes are changed: e.g. `\[rs]` instead of `\\` for backslash, and `\ga]` instead of `` \` `` for backtick.
2018-10-17man/ms writers: use `\[at]` for escaped `@`.John MacFarlane1-1/+1
2018-10-17Move common groff functions to Text.Pandoc.Writers.GroffJohn MacFarlane6-64/+65
(unexported module). These are used in both the man and ms writers. Moved groffEscape out of Text.Pandoc.Writers.Shared [cancels earlier API change from adding it, which was after last release]. This fixes strong/code combination on man (should be `\f[CB]` not `\f[BC]`), mentioned in #4973. Updated tests. Closes #4975.
2018-10-17Man writer: use \f[R] instead of \f[] to reset fontAlexander Krotov2-44/+45
Fixes #4973
2018-10-17Muse reader: allow examples to be indented with tabsAlexander Krotov1-0/+8
2018-10-17Muse reader: remove indentation from examples indicated by {{{ and }}}Alexander Krotov1-0/+6
2018-10-16Merge branch 'groff_reader' of https://github.com/Yanpas/pandoc into ↵John MacFarlane6-0/+394
Yanpas-groff_reader
2018-10-17added old-style testYan Pas4-1/+288
2018-10-15Only override --quickcheck-tests=N if N is not default value (100).John MacFarlane2-2/+12
Some of the round-trip tests are set to do a maximum of 25 trials when the default value is given. Closes #4956.
2018-10-16buildersYan Pas1-4/+4
2018-10-15LaTeX reader: make macroDef polymorphic and allow in inline context.John MacFarlane1-2/+1
Otherwise we can't parse something like ``` \lowercase{\def\x{Foo}} ``` I have actually seen tex like this in the wild.
2018-10-15Added failing test case for macros.John MacFarlane1-0/+18
2018-10-14Markdown writer: ensure blank between raw block and normal content.John MacFarlane2-0/+8
Otherwise a raw block can prevent a paragraph from being recognized as such. Closes #4629.
2018-10-14Markdown reader: Fix awkward soft break movements before abbreviations.John MacFarlane2-1/+32
Closes #4635.
2018-10-14tests, commented debug functionsYan Pas1-19/+58
2018-10-11HTML reader: fix htmlTag and isInlineTag to accept processing instructions.John MacFarlane1-0/+13
Fixes regression #3123 (since 2.0). Added regression test.
2018-10-10Test that Muse reader can parse code with = sign insideAlexander Krotov1-0/+2
(fixed by previous commit)
2018-10-10Muse reader: fix parsing of empty cellsAlexander Krotov1-0/+11
2018-10-09posix man files parsed successfullyYan Pas1-2/+2
2018-10-09Docx writer: added framework for custom properties.John MacFarlane26-0/+0
So far, we don't actually write any custom properties, but we have the infrastructure to add this. See #3034.
2018-10-08Fixed tests for new skylighting.John MacFarlane3-9/+9
2018-10-08LaTeX writer: with `--biblatex`, use `\autocite` when possible.John MacFarlane1-0/+22
`\autocites{a1}{a2}{a3}` will not collapse the entries. So, if we don't have prefixes and suffixes, we use instead `\autocite{a1;a2;a3}`. Closes #4960.
2018-10-07RST reader: don't allow single-dash separator in headerless table.John MacFarlane1-0/+10
Closes #4382.
2018-10-07LaTeX reader: fix bugs omitting raw tex.John MacFarlane4-8/+21
The default is `-raw_tex`, so no raw tex should result unless we explicitly say `+raw_tex`. Previously some raw commands did make it through. Closes #4527.
2018-10-07RST reader: pass through fields in unknown directives as div attributes.John MacFarlane1-0/+16
This commit also adds support for `class` and `name` attributes to directives in general. Closes #4715.
2018-10-07test suite and more secapesYan Pas1-0/+22
2018-10-07Merge branch 'master' into groff_readerYan Pas103-663/+2355
2018-10-06RST writer: use simple tables when possible.John MacFarlane2-38/+30
Closes #4750. Text.Pandoc.Writers.Shared now exports hasSimpleCells [API change].
2018-10-05Org reader: fix behavior for successive calls of `#+EXCLUDE_TAGS`. (#4951)Brian Leung1-0/+11
Calling `#+EXCLUDE_TAGS` multiple times should preserve the status of the previously declared tags.
2018-10-05CommonMark writer: add plain text fallbacks. (#4531)quasicomputational1-0/+156
Previously, the writer would unconditionally emit HTMLish output for subscripts, superscripts, strikeouts (if the strikeout extension is disabled) and small caps, even with raw_html disabled. Now there are plain-text (and, where possible, fancy Unicode) fallbacks for all of these corresponding (mostly) to the Markdown fallbacks, and the HTMLish output is only used when raw_html is enabled. This commit adds exported functions `toSuperscript` and `toSubscript` to `Text.Pandoc.Writers.Shared`. [API change] Closes #4528.
2018-10-05Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4950)Brian Leung1-0/+29
Closes #4284. Headers with the corresponding tags should not appear in the output. If one or more of the specified tags contains a non-tag character like `+`, Org-mode will not treat that as a valid tag, but will nonetheless continue scanning for valid tags. That behavior is not replicated in this patch; entering `cat+dog` as one of the entries in `#+EXCLUDE_TAGS` and running the file through Pandoc will cause the parser to fail and result in the only excluded tag being the default, `noexport`.
2018-10-05OpenDocument writer: Implement table caption numbering (#4949)Nils Carlson1-4/+6
Implement table caption numbering with a format "Table 1: <caption>". Translations are enabled and numbering is consecutive for captioned tables, uncaptioned tables are not enumerated. Captioned figures are now also numbered consecutively and uncaptioned figures are not enumerated.