Albert Krewinkel
d202f7eb77
Avoid unnecessary use of NoImplicitPrelude pragma ( #7089 )
2021-02-07 10:02:35 -08:00
despresc
c7814f31e1
Use the new builders, modify readers to preserve empty headers
...
The Builder.simpleTable now only adds a row to the TableHead when the
given header row is not null. This uncovered an inconsistency in the
readers: some would unconditionally emit a header filled with empty
cells, even if the header was not present. Now every reader has the
conditional behaviour. Only the XWiki writer depended on the header
row being always present; it now pads its head as necessary.
2020-04-15 23:03:22 -04:00
despresc
4e34d366df
Adapt to the newest Table type, fix some previous adaptation issues
...
- Writers.Native is now adapted to the new Table type.
- Inline captions should now be conditionally wrapped in a Plain, not
a Para block.
- The toLegacyTable function now lives in Writers.Shared.
2020-04-15 23:03:22 -04:00
despresc
7254a2ae0b
Implement the new Table type
2020-04-15 23:03:22 -04:00
Alexander Krotov
0713cb65bc
Muse: add RTL support
...
Closes #5551
2019-07-14 18:22:52 +03:00
Alexander Krotov
19f9eed0bb
Muse writer: do not escape empty line after <br>
2019-05-25 17:54:31 +03:00
Alexander Krotov
2b2d9baaa8
Muse writer tests: compare Text without converting to [Char]
2019-04-28 03:21:14 +03:00
Alexander Krotov
2c7c8a6f40
Muse writer: escape secondary notes
2019-02-18 15:21:32 +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
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
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
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
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
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
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
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
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
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
Alexander Krotov
19fd98e452
Muse writer: support spans with anchors
2018-03-12 01:47:20 +03:00
Alexander Krotov
1884ee6083
Muse writer: replace smallcaps with emphasis before normalization
2018-03-07 20:10:19 +03:00
Alexander Krotov
ff8e59a174
Muse writer: output smallcaps as emphasis
2018-03-07 19:11:27 +03:00
Alexander Krotov
f8e255053d
Muse writer: write empty inline lists as <verbatim></verbatim>
2018-03-07 18:35:04 +03:00
Alexander Krotov
1b1b6f02d5
Muse writer: escape "-" to avoid creating bullet lists
2018-03-07 15:19:36 +03:00
Alexander Krotov
31b4387a6b
Muse writer: fix math expansion for more than one expression per paragraph
2018-03-06 12:58:20 +03:00