aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
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
2018-10-25Man reader: support tables.John MacFarlane2-1/+218
Closes #4982.
2018-10-25Lua: allow access to pandoc state (#5015)Albert Krewinkel2-0/+25
* Lua: allow access to pandoc state Lua filters and custom writers now have read-only access to most fields of pandoc's internal state via the global variable `PANDOC_STATE`. * Lua: allow iterating through fields of PANDOC_STATE * Lua filters doc: describe CommonState * Lua filters doc: mention global variable PANDOC_STATE * Lua: add access to logs Log messages can currently only be printed, but not decomposed.
2018-10-25Muse writer: add support for grid tablesAlexander Krotov1-11/+24
2018-10-24GroffChar: added @ to list of standard escapes.John MacFarlane1-1/+1
Because we use it as a delimiter for tables (in man) and for math (in ms).
2018-10-24Vimwiki reader: test empty preformatted textAlexander Krotov2-1/+8
2018-10-23Groff writer character escaping changes.John MacFarlane4-31/+31
T.P.GroffChar: replaced `essentialEscapes` with `manEscapes`, which includes all the escapes mentioned in the groff_man manual. T.P.Writers.Groff: removed escapeCode; changed parameter on escapeString from Bool to new type `EscapeMode`. Rewrote `escapeString`.
2018-10-22Man reader: Handle optional argument in ME, UE macros.John MacFarlane2-5/+5
Closes #4995.
2018-10-22Groff writers escaping changes.John MacFarlane2-32/+32
- Improve escaping of accented characters with `--ascii`. Combining accents are now handled properly. - Don't escape spaces and tabs in code blocks. This doesn't seem to be necessary.
2018-10-22LaTeX reader: add support for `nolinkurl` command. (#4992)Brian Leung1-0/+10
2018-10-23Muse writer: do not insert newline before listsAlexander Krotov1-0/+1
2018-10-22Man reader: don't parse \[ul] as unicode escape.John MacFarlane1-1/+1
2018-10-21Man reader: fix code block tests.John MacFarlane1-3/+3
They incorporated a spurious newline which needs to be removed.
2018-10-21Man reader: support .ds, .ds1; also fix macro arguments.John MacFarlane2-2/+4
Closes #4997.
2018-10-22Muse reader: allow footnotes to start with empty lineAlexander Krotov1-0/+17
A space character was required after footnote marker, now newline is allowed.
2018-10-21Man reader: Moved handling of B, I, BI, IB, etc. to parsing phase.John MacFarlane1-1/+1
Ultimately groff lexing should not handle man-specific macros. This approach also gives more correct results for the test case.
2018-10-21Man reader: move macro resolution to lexer phase.John MacFarlane2-1/+15
We also introduce a new type ManTokens (a sequence of tokens) and remove MComment. This allows lexers to return empty strings of tokens, or multiple tokens (as when macros are resolved). One test still fails. This needs to be fixed by moving handling of .BI, .I, etc. to the parsing phase.
2018-10-21Muse writer: use lightweight markup after </em> tagAlexander Krotov1-0/+3
2018-10-20Man reader: support UR/UE, MT/ME for links.John MacFarlane2-1/+14
Closes #4989.
2018-10-20Man reader: Fixed handling of nested fonts.John MacFarlane1-0/+7
Closes #4978.
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.