John MacFarlane
8ca012f139
Ms writer: font improvements.
...
* Use `\f[R]` rather than `\f[]` to reset. The latter
returns to the previous font, which gives unintended
results in some cases.
* Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
since the header font is automatically bold.
* Use `\f[CB]` rather than `\f[BC]` for monospace bold.
Closes #4552 .
2018-04-15 22:44:16 -07:00
Alexander Krotov
01f5ed14e6
Muse reader: don't allow footnote references inside links
2018-04-15 17:53:53 +03:00
Alexander Krotov
17767bd29d
Muse writer: escape strings starting with space
2018-04-15 16:28:45 +03:00
Alexander Krotov
9cc2bf0295
Muse reader: allow URL to be empty
...
Muse writer can write links with empty URLs, so Muse reader should read them.
2018-04-15 14:50:46 +03:00
Alexander Krotov
6be0139145
Muse reader: require that comment semicolons are in the first column
...
Fixes #4551
2018-04-15 12:17:33 +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
Alexander Krotov
17b0499516
Muse reader: add support for Text:Amuse multiline headings
2018-04-09 02:05:57 +03:00
Alexander Krotov
ebbd441d06
Muse reader: add support for <biblio> and <play> tags
2018-04-07 18:31:06 +03:00
Alexander Krotov
f9aa2eb353
FB2 writer: output links inline instead of producing notes
...
Previously all links were turned into footnotes with unclickable URLs inside.
2018-04-07 17:12:55 +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
John MacFarlane
d77e8f45c9
LaTEX reader: properly resolve section numbers with \ref and chapters.
...
Closes #4529 .
2018-04-05 10:14:06 -07: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
quasicomputational
13538ce6eb
CommonMark writer: correctly ignore LaTeX raw blocks when not raw_tex ( #4533 )
...
Issue #4527 .
2018-04-05 08:53:42 -07:00
Alexander Krotov
ff3ed5c9f8
FB2 writer: allow emphasis and notes in titles
...
Only <p> and <empty-line /> are allowed in titles,
but <p> has the same type as an ordinary paragraphs.
Therefore, there is no need to remove emphasis from titles.
Also, don't intersperse paragraph with empty lines.
2018-04-04 14:22:34 +03:00
Marc Schreiber
16523ea3d1
LaTeX reader: parse sloppypar environment ( #4517 )
2018-04-02 09:33:29 -07:00
Alexander Krotov
2380845206
Muse reader: add <math> tag support
2018-04-02 17:19:26 +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
John MacFarlane
b9602766d8
Textile reader: fixed tables with no body rows.
...
Previously these raised an exception.
Closes #4513 .
2018-03-30 14:56:36 -07:00
John MacFarlane
5a79948e0c
Mediawiki reader: improve table parsing.
...
This fixes detection of table attributes and also
handles `!` characters in cells.
Closes #4508 .
2018-03-28 08:59:34 -07:00
Alexander Krotov
b379a2903a
Muse writer: escape semicolons and markers after line break
2018-03-28 13:19:39 +03:00
Alexander Krotov
aa929e462d
Muse reader: enable round-trip test
...
Close #4468
2018-03-25 23:04:54 +03:00
Alexander Krotov
79592db66c
Muse reader: allow links to have empty descriptions
2018-03-25 22:16:45 +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
c6232d0f7d
Muse reader: require block <literal> tags to be on separate lines
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
Jesse Rosenthal
a295fed873
Update powerpoint golden tests:
...
Some internal changes in templating produced slightly different
xml. All have been checked, are not corrupt, and have output as expected.
2018-03-24 11:07:47 -04: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
Jesse Rosenthal
f12348cab5
Powerpoint writer: add tests for improved speaker notes.
...
Tests speaker notes appearing after (and inside of) separating blocks.
Output checked on Windows10 (archlinux virtualbox), PowerPoint
2013. Not corrupted, and output as expected.
2018-03-21 10:07:07 -04:00
Alexander Krotov
81afcdfaf8
Muse writer: escape "]" in image title
2018-03-20 15:01:53 +03:00
Alexander Krotov
268c73c873
Muse writer: escape ";" to avoid accidental comments
2018-03-20 12:16:34 +03:00
Alexander Krotov
d63bba3066
Muse writer: escape "]" brackets in URLs as "%5D"
2018-03-20 12:16:34 +03:00
John MacFarlane
3d21c184d4
Ms writer: don't escape hyphens.
...
Previously we escaped hyphens as `\-`, but that's a minus sign.
Closes #4467 .
Updated changelog.
2018-03-18 14:52:03 -07:00
John MacFarlane
0ef56657ed
Comment out Muse reader round-trip test.
...
It fails too often. Perhaps a separate test program should
be used to hunt for round-trip bugs.
2018-03-18 12:43:36 -07:00
John MacFarlane
7e389cb3db
Use NoImplicitPrelude and explicitly import Prelude.
...
This seems to be necessary if we are to use our custom Prelude
with ghci.
Closes #4464 .
2018-03-18 10:46:28 -07:00
John MacFarlane
dfa1dc164a
hlint fixes.
2018-03-17 22:00:55 -07:00
Marc Schreiber
155a2ac039
Add support to parse unit string of \SI command ( closes #4296 ).
2018-03-17 20:59:20 -07:00
Francesco Occhipinti
ba965d1736
RST writer: filter out empty inline containers ( #4434 ).
...
There is nothing in RST that corresponds to e.g. `Emph []`, so we just filter out elements like this.
2018-03-17 20:39:26 -07:00
Francesco Occhipinti
e5845f33ad
Don't wrap lines in grid tables when --wrap=none
( #4320 )
...
* Annotate gridTable code with comments and abstract small functions
* Don't wrap lines in tables when `--wrap=none`. Instead, expand cells, even if
it results in cells that don't respect relative widths or surpass page column width.
* This change affects RST, Markdown, and Haddock writers.
2018-03-17 20:31:43 -07:00
Václav Haisman
2ddf2257dc
Provide bidi
package's option using \PassOptionsToPackage
( #4357 ).
...
* Provide `bidi` package's option using `\PassOptionsToPackage`. This avoid clash when `polyglossia` loads it first and then it is loaded again for XeLaTeX when `latex-dir-rtl` defined.
* Adjust test suite for LaTeX template change.
2018-03-17 20:20:57 -07:00
Francesco Occhipinti
65cc909fde
RST writer: strip whitespace within inlines, closes #4327 ( #4329 )
...
+ Whitespace is ignored at the beginning and end of emphasis, as per
<http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#inline-markup >.
+ Export `stripLeadingTrailingSpace` from `Text.Pandoc.Writers.Shared`.
2018-03-17 19:21:27 -07:00
John MacFarlane
049dacf85f
Removed redundant import of <>
2018-03-17 17:17:47 -07:00
John MacFarlane
be12ae3bca
Better table handling for Haddock.
...
In the reader, we use the new Table type in Haddock.
Note that tables with col/rowspans will not translate
well into Pandoc.
In the writer, we now render tables always as grid tables,
since Haddock supports these.
2018-03-16 22:38:34 -07:00
John MacFarlane
b76c0e6a4a
RST reader: Allow unicode bullet characters.
...
Closes #4454 .
2018-03-14 17:33:00 -07:00