Alexander Krotov
367e8cac18
Muse reader: trim whitespace before parsing grid table cells
2018-11-14 19:17:05 +03:00
Alexander Krotov
c61b67410a
Muse reader: add grid tables support
2018-11-14 17:58:44 +03:00
Alexander Krotov
195b3af8b6
Muse writer: indent simple tables only on the top level
2018-11-14 15:10:38 +03:00
Alexander Krotov
4079697281
Muse writer: output tables with one column as grid tables
2018-11-13 18:44:56 +03:00
Alexander Krotov
928ec21732
Use OverloadedStrings extension to simplify Muse writer tests
2018-11-06 00:04:33 +03:00
Alexander Krotov
0c84630549
Muse writer: add support for --reference-location=
...
Address #107
2018-11-05 08:42:52 +03:00
Yan Pashkovsky
43a0734f62
table tests
2018-11-02 22:42:51 -07:00
John MacFarlane
3305a018bc
Roff reader: properly handle unknown backslash escapes.
...
They are treated as regular characters, according to groff 7.
Cloess #5034 .
2018-10-30 15:54:29 -07:00
John MacFarlane
8d55dc10cd
Roff tokenizer: better handling of escapes.
2018-10-28 21:37:57 -07:00
John MacFarlane
22755a35b7
Roff tokenizer: revamped font parsing using escapeArg.
...
Add support for \C'...' escapes.
2018-10-28 18:06:34 -07:00
Albert Krewinkel
6f29e1c9c1
T.P.Lua: rename runPandocLua
to runLua
(API change)
2018-10-28 12:08:52 -07:00
Albert Krewinkel
7f54f76e8b
T.P.Lua: merge runLuaFilter into T.P.Filter.Lua (API change)
...
The function `runLuaFilter` was only used in Text.Pandoc.Filter.Lua, use
apply from the that module instead.
2018-10-28 12:08:52 -07:00
Alexander Krotov
f8ca36525d
Muse: Make tables round-trip
2018-10-28 03:52:35 +03:00
Alexander Krotov
e34a0703f5
Muse reader: try to parse lists before trying to parse table
...
This ensures that tables inside lists are parsed correctly.
2018-10-28 03:52:25 +03:00
Alexander Krotov
d8135b2e67
Remove misleading comment from Muse reader tests
...
pandoc follows Text::Amuse rules instead of being bug compatible with Emacs Muse
2018-10-27 23:43:23 +03:00
Alexander Krotov
d28dca57db
Muse reader: forbid whitespace after opening and before closing markup elements
...
See https://github.com/melmothx/text-amuse/issues/44 for discussion on these rules
2018-10-27 23:35:11 +03:00
Alexander Krotov
1ca320e249
Muse reader: parse page breaks
2018-10-26 16:30:15 +03:00
Alexander Krotov
4275d58a9f
Muse writer: do not insert newline before lists
2018-10-23 03:38:59 +03:00
John MacFarlane
0327226d4c
Man reader: don't parse \[ul] as unicode escape.
2018-10-22 12:05:34 -07:00
Alexander Krotov
875e33ecf6
Muse reader: allow footnotes to start with empty line
...
A space character was required after footnote marker, now newline is allowed.
2018-10-22 03:05:17 +03:00
Alexander Krotov
a98e2b7c42
Muse writer: use lightweight markup after </em> tag
2018-10-21 20:23:10 +03:00
John MacFarlane
2b7a541dd0
Man reader: Fixed handling of nested fonts.
...
Closes #4978 .
2018-10-20 22:41:39 -07:00
Alexander Krotov
8df59952bf
Muse reader: allow empty headers
...
Previously empty headers caused parser to terminate without parsing the rest of the document.
2018-10-21 06:42:00 +03:00
John MacFarlane
f202279902
Man reader: Fix .B, .I, .BR, etc.
2018-10-20 16:40:44 -07:00
John MacFarlane
a9fc71118f
Man reader: major restructuring, support macros.
...
- 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-20 15:57:34 -07:00
John MacFarlane
62566c8182
Man reader: handle shift in list style.
...
Closes #4987 .
2018-10-20 09:30:37 -07:00
Jesse Rosenthal
11e681edac
Powerpoint tests: test raw openxml
...
Output files confirmed not to be corrupt, and with content as
expected, on PowerPoint 2013 on Windows 10 (virtualbox on linux).
2018-10-20 09:00:23 -04:00
John MacFarlane
7dd06e96d7
Man reader: Improved header parsing.
...
- .SH should be level 1, .SS level 2.
- The header title can come on the next line.
2018-10-19 23:27:04 -07:00
John MacFarlane
f5704fac97
Man reader: properly handle multi-block list items.
...
Closes #4985 .
2018-10-19 22:54:05 -07:00
John MacFarlane
790ada8946
Man reader: Added more tests for escapes.
...
Closes #4983 .
2018-10-19 15:36:43 -07:00
John MacFarlane
56c4a11f97
Man reader: minor improvements.
...
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-19 15:17:53 -07:00
John MacFarlane
e6772360f6
More man reader test updates.
2018-10-19 14:59:11 -07:00
John MacFarlane
400e87df1d
Update man reader tests.
2018-10-18 23:54:13 -07:00
John MacFarlane
94c73e84d5
Merge branch 'Yanpas-groff_reader'
2018-10-18 20:58:46 -07:00
Alexander Krotov
6fc812485e
Muse reader: allow examples to be indented with tabs
2018-10-17 18:17:30 +03:00
Alexander Krotov
1071732719
Muse reader: remove indentation from examples indicated by {{{ and }}}
2018-10-17 13:57:05 +03:00
John MacFarlane
5c42101ee9
Merge branch 'groff_reader' of https://github.com/Yanpas/pandoc into Yanpas-groff_reader
2018-10-16 18:39:20 -07:00
Yan Pas
7741cdbf04
added old-style test
2018-10-17 00:21:52 +03:00
John MacFarlane
885cbfd420
Only override --quickcheck-tests=N if N is not default value (100).
...
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-15 22:15:43 -07:00
Yan Pas
ce27bf9a02
builders
2018-10-16 03:12:06 +03:00
Yan Pas
3fed62611e
tests, commented debug functions
2018-10-14 00:57:15 +03:00
Alexander Krotov
6b8fd99dbd
Test that Muse reader can parse code with = sign inside
...
(fixed by previous commit)
2018-10-10 03:27:36 +03:00
Alexander Krotov
d3b2161bd1
Muse reader: fix parsing of empty cells
2018-10-10 01:48:58 +03:00
Yan Pas
27467189ab
Merge branch 'master' into groff_reader
2018-10-07 18:10:01 +03:00
Alexander Krotov
5f7799ac8f
Muse reader: allow table caption to contain "+"
2018-10-05 11:58:41 +03:00
leungbk
4f9ab7e032
Parse empty argument array in inline src blocks.
...
`enclosedByPair` alone does not the handle the empty array properly since it uses `many1Till`.
2018-09-28 14:05:14 +02:00
John MacFarlane
13f8f3c1a8
HTML, Muse reader tests: reduce time taken by round-trip test.
2018-09-27 09:47:09 -07:00
Albert Krewinkel
56fe5b559e
Use hslua v1.0.0
2018-09-24 20:11:27 +02:00
Alexander Krotov
389ffa3045
Muse reader tests: more tests
...
Check that indented blocks that end in self-terminating blocks (such as block tags and verse) can be terminated by paragraphs.
2018-09-22 20:28:11 +03:00
Alexander Krotov
dd5d234c6a
Muse reader: do not allow code markup to be followed by digit
2018-09-21 13:07:56 +03:00