John MacFarlane
650b13e2d6
Docx reader spacing fix: avoid creating Str "".
2021-10-02 12:04:42 -07:00
John MacFarlane
9fa2d0892e
Restore RST writer.
2021-10-02 12:04:42 -07:00
John MacFarlane
460721cec9
Restore markdown writer.
2021-10-02 12:04:42 -07:00
John MacFarlane
920096115d
Use latest pandoc-types.
2021-10-02 12:04:42 -07:00
John MacFarlane
85052334bf
Adjust pptx golden tests.
2021-10-02 12:04:42 -07:00
John MacFarlane
983ec0c8f1
OOXML tests: use pretty-printed form to display diffs.
...
Otherwise everything is on one line and the diff is uninformative.
2021-10-02 12:04:42 -07:00
John MacFarlane
80b1143830
Fix compareXML helper in Tests.Writers.OOXML.
...
Given how it is used, we were getting "mine" and "good"
flipped in the test results.
2021-10-02 12:04:42 -07:00
John MacFarlane
eeacdf108e
Fixed command test
2021-10-02 12:04:42 -07:00
John MacFarlane
5a768eee6e
Test fixes.
2021-10-02 12:04:42 -07:00
John MacFarlane
2e654c708e
Small improvements.
2021-10-02 12:04:42 -07:00
John MacFarlane
1baf63aa17
Use breakable in lots of writers.
2021-10-02 12:04:42 -07:00
John MacFarlane
9de95fd7f1
Use breakable in LaTeX writer.
2021-10-02 12:04:42 -07:00
John MacFarlane
45721cc77d
T.P.Writers.Shared: export breakable [API change].
...
This is like literal but it puts in breaking spaces.
2021-10-02 12:04:38 -07:00
John MacFarlane
11c521b0d4
Use latest pandoc-types.
2021-10-01 10:54:14 -07:00
John MacFarlane
a0d44ed453
Use latest pandoc-types.
2021-09-30 21:05:38 -07:00
John MacFarlane
91d15a0628
More test fixes.
2021-09-29 08:37:08 -07:00
John MacFarlane
75c619ccce
Fix native output in Haskell tests.
2021-09-29 08:37:08 -07:00
John MacFarlane
061b7e8782
Despace native test outputs.
2021-09-29 08:37:08 -07:00
John MacFarlane
0f96591c1a
More efficient str parser.
2021-09-29 08:37:08 -07:00
John MacFarlane
1637526573
More changes. Compiles.
...
A number of writers have been replaced by undefined.
Tests won't compile.
Wrapping in writers is broken.
Abbreviations have been commented out in markdown reader.
2021-09-29 08:37:08 -07:00
John MacFarlane
a1df872aed
More.
2021-09-29 08:37:08 -07:00
John MacFarlane
88164609ce
More.
2021-09-29 08:37:08 -07:00
John MacFarlane
11b8f67d16
More progress.
...
Temporarily comment out a lot of markdown writer code.
2021-09-29 08:37:08 -07:00
John MacFarlane
1ef55a8cf3
More.
2021-09-29 08:37:08 -07:00
John MacFarlane
befb0f7f0d
More.
2021-09-29 08:37:08 -07:00
John MacFarlane
71c34349dc
More.
2021-09-29 08:37:08 -07:00
John MacFarlane
11a72c6512
More.
2021-09-29 08:37:08 -07:00
John MacFarlane
64395389a4
More.
2021-09-29 08:37:08 -07:00
John MacFarlane
3fe4b44d85
More.
2021-09-29 08:37:08 -07:00
John MacFarlane
1e38d03507
More.
2021-09-29 08:37:08 -07:00
John MacFarlane
acbe5f1f0d
More.
2021-09-29 08:37:08 -07:00
John MacFarlane
c1f8866b8f
More progress.
2021-09-29 08:37:08 -07:00
John MacFarlane
9a6da214da
Progress removing Space.
2021-09-29 08:37:08 -07:00
John MacFarlane
e83ab10565
Depend on nospace branch of citeproc.
2021-09-29 08:37:08 -07:00
John MacFarlane
dd28e9b2aa
Depend on nospace branch of commonmark-pandoc.
2021-09-29 08:37:08 -07:00
John MacFarlane
d954a271d2
Depend on nospace branch of texmath.
2021-09-29 08:37:08 -07:00
John MacFarlane
b601d2ee2e
Depend on pandoc-types without Space.
...
todo: new branches of citeproc, texmath, commonmark-hs.
2021-09-29 08:37:08 -07:00
John MacFarlane
45db998b39
EPUB writer: treat epub:type "frontispiece" as front matter.
...
This allows you to include a frontispiece using
```

etc.
```
Closes #7600 .
2021-09-29 08:29:14 -07:00
John MacFarlane
92abe45863
Further test updates for switch to pretty-show.
2021-09-29 08:28:54 -07:00
John MacFarlane
0bdcf415e4
Switch from pretty-simple to pretty-show for native output.
...
Update tests.
Reason: it turns out that the native output generated by
pretty-simple isn't always readable by the native reader.
According to https://github.com/cdepillabout/pretty-simple/issues/99
it is not a design goal of the library that the rendered values
be readable using 'read'. This makes it unsuitable for our
purposes.
pretty-show is a bit slower and it uses 4-space indents
(non-configurable), but it doesn't have this serious drawback.
2021-09-28 21:17:53 -07:00
John MacFarlane
8018179b3d
Better implementation of splitStrWhen
2021-09-27 16:43:13 -07:00
John MacFarlane
df57d0930b
RST writer: properly handle anchors to ids...
...
with spaces or leading underscore.
In this cases we need the quoted form, e.g.
```
.. _`foo bar`:
.. _`_foo`:
```
Side note: rST will "normalize" these identifiers anyway,
ignoring the underscore:
https://docutils.sourceforge.io/docs/ref/rst/directives.html#identifier-normalization
Closes #7593 .
2021-09-26 21:56:21 -07:00
John MacFarlane
9b23b738cb
Update documentation for definition_list extension.
...
In 2015, we relaxed indentation requirements for the first
line of a definition (see commit d3544dc and issue #2087 ), but
the documnentation wasn't updated to reflect the change.
Closes #7594 .
2021-09-26 21:20:27 -07:00
John MacFarlane
665e6d3d94
BibTeX parser: fix expansion of special strings in series...
...
e.g. `newseries` or `library`. Expansion should not happen
when these strings are protected in braces, or when they're
capitalized.
Closes #7591 .
2021-09-23 22:21:05 -07:00
John MacFarlane
aa89f6be18
HTML reader: handle empty tbody element in table.
...
Closes #7589 .
2021-09-23 09:25:37 -07:00
John MacFarlane
f0a6eb913d
HTML writer: render \ref and \eqref as inline math...
...
not display. See #7589 .
2021-09-23 08:49:52 -07:00
John MacFarlane
0afb48cd38
HTML writer: pass through \ref and \eqref...
...
if MathJax is used.
Closes #7587 .
2021-09-22 22:33:41 -07:00
John MacFarlane
7ab2f4a61d
HTML writer: pass through inline math environments with KaTeX.
2021-09-22 22:18:38 -07:00
John MacFarlane
d6dbbb89d0
Use latest citeproc.
2021-09-22 13:21:56 -07:00
John MacFarlane
3de0d5a977
test/epub: an excerpt from The Wasteland is enough!
...
Saves over 100K.
2021-09-21 18:54:42 -07:00