Alexander Krotov
814c3af4df
Muse reader: test that links inside image descriptions work
2019-06-09 14:08:37 +03:00
Alexander Krotov
f807f5b383
Muse reader: allow images inside link descriptions
2019-05-25 19:17:16 +03:00
Albert Krewinkel
8b00bc6029
Org reader: fix planning elements in headers level 3 and higher
...
Planning info is now always placed before the subtree contents.
Previously, the planning info was placed after the content if the
header's subtree was converted to a list, which happens with headers of
level 3 and higher per default.
Fixes : #5494
2019-05-13 22:55:13 +02:00
Albert Krewinkel
00ef03827e
Org reader: omit, but warn about unknown export options
...
Unknown export options are properly ignored and omitted from the output.
2019-05-13 22:25:04 +02:00
Alexander Krotov
5c7ad59ffe
FB2 reader: add notes parsing test
2019-05-11 12:10:20 +00:00
Albert Krewinkel
33e2d46dbe
Org reader: prefer plain symbols over math symbols
...
Symbols like `\alpha` are output plain and unemphasized, not as math.
Fixes : #5483
2019-05-05 14:48:37 +02:00
Albert Krewinkel
7e7bc3493e
Org reader: recognize emphasis after TODO/DONE keyword
...
Fixes : #5484
2019-05-05 13:53:11 +02:00
John MacFarlane
052684712b
HTML reader: read data-foo
attribute into foo
.
...
The HTML writer adds the `data-` prefix for HTML5
for nonstandard attributes. But the attributes are
represented in the AST without the `data-` prefix,
so we should strip this when reading HTML.
Closes #5392 .
2019-03-25 08:43:59 -07:00
Jesse Rosenthal
9a1a3fe482
Docx reader: add tests for trimming last inline.
2019-02-18 15:49:00 -05:00
Alexander Krotov
c4814ea965
Muse reader: add secondary note support
2019-02-18 15:21:32 +03:00
Jesse Rosenthal
332e2ba5b6
Docx reader: Add test for reading sdts in footnotes.
2019-02-12 17:26:37 -05:00
Jesse Rosenthal
1847bdbb83
Docx reader: Tests for alternate document.xml
2019-02-06 21:14:46 -05:00
Alexander Krotov
59fa4eb17e
Muse reader: test that block level markup does not break <verbatim>
2019-02-06 02:25:24 +03:00
Albert Krewinkel
37a82b0b11
Add missing copyright notices and remove license boilerplate ( #5112 )
...
Quite a few modules were missing copyright notices.
This commit adds copyright notices everywhere via haddock module
headers. The old license boilerplate comment is redundant with this and has
been removed.
Update copyright years to 2019.
Closes #4592 .
2019-02-04 13:52:31 -08:00
Brian Leung
35971495ab
RST reader: change treatment of number-lines
directives. ( #5207 )
...
Directives of this type without numeric inputs should not have a
`startFrom` attribute; with a blank value, the writers can produce
extra whitespace.
2019-01-09 22:19:26 -08:00
John MacFarlane
8673eb079b
Removed superfluous sourceCode class on code blocks.
...
* These were added by the RST reader and, for literate Haskell,
by the Markdown and LaTeX readers. There is no point to
this class, and it is not applied consistently by all readers.
See #5047 .
* Reverse order of `literate` and `haskell` classes on code blocks
when parsing literate Haskell. Better if `haskell` comes first.
2019-01-08 11:36:33 -08:00
Brian Leung
9dbcf16161
Org reader: handle minlevel
option differently. ( #5190 )
...
When `minlevel` exceeds the original minimum level observed in the
file to be included, every heading should be shifted rightward.
2019-01-07 20:28:47 -08:00
Alexander
40c30a9d88
Add DokuWiki reader ( #5108 )
...
Closes #1792
2019-01-06 15:06:32 -08:00
Albert Krewinkel
2f92261d87
Org reader: fix self-link parsing regression
...
Fixes a regression introduced by the previous commit.
2019-01-01 22:06:44 +01:00
Albert Krewinkel
c0caaaeabb
Org reader: fix treatment of links to images
...
Links with descriptions which are pointing to images are no longer read
as inline images, but as proper links.
Fixes : #5191
2019-01-01 21:03:38 +01:00
Alexander Krotov
5101f4324b
Muse reader tests: test #cover directive
2018-12-25 15:23:02 +03:00
Jesse Rosenthal
0f736d778f
Docx: add test for lists with level overrides.
2018-12-10 19:24:56 -05:00
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
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
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
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
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
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