John MacFarlane
e87b54dcad
JATS writer: properly handle footnotes.
...
"Best Practice: When footnotes are grouped at the end of an article,
wrap them in a `<fn-group>` and use an `<xref>` element in the text, as
usual, to tie each footnote in the list to a particular location in the
text."
Closes #5511 .
2019-05-16 21:39:03 -07:00
Alexander Krotov
2b2d9baaa8
Muse writer tests: compare Text without converting to [Char]
2019-04-28 03:21:14 +03:00
Jesse Rosenthal
0d1fc7dfff
PowerPoint writer: add test for speaker notes after metadata.
2019-03-31 17:09:00 -04:00
Jesse Rosenthal
efa6304eee
Pptx writer: test for speaker notes after breaking header.
2019-03-30 22:52:31 -04:00
Alexander Krotov
2c7c8a6f40
Muse writer: escape secondary notes
2019-02-18 15:21:32 +03:00
John MacFarlane
b6cf490efd
Use latest skylighting.
2019-02-10 08:06:53 -08:00
Agustín Martín Barbero
9894d05fe3
Improve writing metadata for docx, pptx and odt ( #5252 )
...
* docx writer: support custom properties. Solves the writer part of #3024 .
Also supports additional core properties: `subject`, `lang`, `category`,
`description`.
* odt writer: improve standard properties, including the following core properties:
`generator` (Pandoc/VERSION), `description`, `subject`, `keywords`,
`initial-creator` (from authors), `creation-date` (actual creation date).
Also fix date.
* pptx writer: support custom properties. Also supports additional core
properties: `subject`, `category`, `description`.
* Includes golden tests.
* MANUAL: document metadata support for docx, odt, pptx writers
2019-01-26 16:14:35 -08:00
John MacFarlane
599327bee1
Asciidoc writer: shorter delimiters for tables, blockquotes.
...
This matches asciidoctor reference docs.
Closes #4364 .
2019-01-07 22:10:34 -08: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
Alexander Krotov
4275d58a9f
Muse writer: do not insert newline before lists
2018-10-23 03:38:59 +03:00
Alexander Krotov
a98e2b7c42
Muse writer: use lightweight markup after </em> tag
2018-10-21 20:23:10 +03: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
Alexander Krotov
71776661cd
Muse writer: replace newlines in strings with spaces
2018-09-16 21:05:57 +03:00
Alexander Krotov
1aac754359
Muse writer: set envInsideBlock = True when rendering notes
2018-09-11 14:10:20 +03:00
Alexander Krotov
e6ba0cc893
HTML writer: always output <dt> element, even if it is empty
...
Fixes #4883
2018-09-11 13:20:11 +03:00
Alexander Krotov
165a61095c
Muse writer: check for whitespace in the beginning and end of Str's
2018-09-11 11:49:11 +03:00
Alexander Krotov
cb28cab489
Muse writer: escape -, ; and > in the beginning of strings
2018-09-11 11:35:25 +03:00
Alexander Krotov
c899b4e89d
Muse writer: escape list markers in the beginning of notes
2018-09-11 04:15:32 +03:00
Alexander Krotov
00b2b0feb6
Muse writer: normalize inline list before testing if tags should be used
2018-09-11 01:36:11 +03:00
Alexander Krotov
c2b97c4b80
Muse writer: use tags instead of lightweight markup for empty strings
2018-09-11 00:39:37 +03:00
Alexander Krotov
bec2023265
hlint Muse writer tests
2018-09-04 11:00:44 +03:00
Alexander Krotov
6ea6011ca6
Muse writer: use lightweight markup when possible
2018-09-02 03:29:27 +03:00
Francesco Occhipinti
2661658a69
RST writer: use titleblock
instead of title
variable for title block
...
Closes #4803
After this commit use `$titleblock$` in order to get what was contained
in `$title$` before, that is a title and subtitle rendered according to
the official rST method:
http://docutils.sourceforge.net/docs/user/rst/quickstart.html#document-title-subtitle . from
With this commit, the `$title$` and `$subtitle$` metadata are available and they
simply carry the metadata values. This opens up more possibilities in templates.
2018-08-01 12:32:16 -07:00
John MacFarlane
a00ca6f0d8
Removed inadvertently added .orig files from repository.
...
These were added by
96d10c72cc
Closes #4648 .
2018-05-11 17:10:32 -07:00
Alexander Krotov
5879923422
Muse writer: add support for left-align and right-align classes
...
Address issue #4542
2018-05-07 14:54:20 +03:00
Francesco Occhipinti
8b01f03eaa
RST writer: preserve empty inline parents in flatten ( #4603 )
2018-04-27 09:01:20 -07:00
John MacFarlane
619aaf29aa
Merge branch 'fb2-hrblankline' of https://github.com/labdsf/pandoc into labdsf-fb2-hrblankline
2018-04-26 12:29:06 -07:00
Francesco Occhipinti
eef1c211f5
RST reader: flatten nested inlines, closes #4368 ( #4554 )
...
nested inlines are not valid RST syntax, so we flatten them following
some readability criteria discussed in #4368 .
2018-04-26 12:17:51 -07:00
John MacFarlane
276894a2f2
RST writer: use more consistent indentation.
...
Previously we used an odd mix of 3- and 4-space indentation.
Now we use 3-space indentation, except for ordered lists,
where indentation must depend on the width of the list marker.
Closes #4563 .
2018-04-19 13:47:16 -07:00
Alexander Krotov
f39931fd6c
Muse writer: escape definition list terms starting with list markers
2018-04-16 11:40:18 +03:00
Alexander Krotov
17767bd29d
Muse writer: escape strings starting with space
2018-04-15 16:28:45 +03:00
John MacFarlane
d5b98c8c6e
Man writer: Don't escape U+2019 as '.
...
Closes #4550 .
2018-04-14 10:42:05 -07:00
Alexander Krotov
782ab73aa3
Muse writer: escape > less often
...
> should be escaped only when it can start verse, i.e., at the beginning of the line.
2018-04-10 23:38:30 +03:00
Alexander Krotov
52803e2960
Muse writer: don't break headers, line blocks and tables with line breaks
2018-04-09 04:24:08 +03:00
Alexander Krotov
44093930a8
Muse writer: correctly output empty headings
2018-04-09 04:10:05 +03:00
John MacFarlane
7e99178a09
Changes to tests to accommodate changes in pandoc-types.
...
In https://github.com/jgm/pandoc-types/pull/36 we changed
the table builder to pad cells. This commit changes tests
(and two readers) to accord with this behavior.
2018-04-05 10:14:06 -07:00
Alexander Krotov
f224567d52
FB2 writer: represent HorizontalRule as empty line
...
HorizontalRule corresponds to <hr> element in the default output
format, HTML. Current HTML standard defines <hr> element as
"paragraph-level thematic break". In typography it is often
represented by extra space or centered asterism ("⁂"), but since
FB2 does not support text centering, empty line (similar to extra space)
is the only solution.
Line breaks, on the other hand, don't generate <empty-line />
anymore. Previously line breaks generated <empty-line /> element
inside paragraph, which is not allowed. So, this commit addresses
issue #2424 ("FB2 produced by pandoc doesn't validate").
FB2 does not have a way to represent line breaks inside paragraphs.
They are replaced with LF character, which is not rendered by
FB2 readers, but at least preserves some information.
2018-04-05 19:53:36 +03:00
Alexander Krotov
87dda2109d
Muse writer: escape horizontal rule only if at the beginning of the line
2018-04-05 19:49:09 +03:00
Alexander Krotov
ca78d93b40
Muse writer: place header IDs before header
...
See https://github.com/melmothx/text-amuse/issues/39
2018-04-02 15:58:37 +03:00
Alexander Krotov
aca4137c40
Muse writer: only escape brackets when necessary
...
It includes cases when they can be mistaken for footnotes
and links, as well as inside link description.
2018-04-01 19:39:18 +03:00
Alexander Krotov
bdb8424697
Muse writer: do not escape list markers unless preceded by space
2018-03-31 23:40:31 +03:00
Alexander Krotov
b379a2903a
Muse writer: escape semicolons and markers after line break
2018-03-28 13:19:39 +03:00
Alexander Krotov
a3f659d2c0
Muse writer: escape ordered list markers
...
Also reduced amount of <verbatim> tags in output to avoid escaping every "-" and word that ends in a full stop.
2018-03-25 19:28:23 +03:00
Alexander Krotov
c24c9efd98
Muse writer: enable --wrap=preserve for all tests by default
2018-03-25 18:31:28 +03:00
Alexander Krotov
4a8993f9b0
Muse writer: improve span writing
...
Test more cases when span has or hasn't anchor, class and contents in different combinations.
2018-03-25 01:18:33 +03:00
Alexander Krotov
d58b961a6d
Muse writer: do not join Span's doing normalization
...
Separate spans may have different semantics, for example if spans indicate syllables in a word.
2018-03-25 00:30:05 +03:00
Alexander Krotov
6f50733691
Muse writer: don't align ordered list items
...
It leads to problems with round-trip test,
because aligned line blocks can't be read back.
2018-03-21 17:33:27 +03:00