Commit graph

15654 commits

Author SHA1 Message Date
John MacFarlane
30074c12e5 Server: Re-add /batch endpoint. We need it. 2022-08-08 15:17:08 -07:00
John MacFarlane
007483b2c3 server: change 'input' param back to 'text'. 2022-08-08 13:36:01 -07:00
John MacFarlane
1f3f9d6dda Switch CI to ubuntu-latest. 2022-08-08 13:32:28 -07:00
John MacFarlane
0aeb7aec1a server: make babelmark endpoint accept GET. 2022-08-08 10:12:33 -07:00
John MacFarlane
5335410ace pandoc-server: allow binary writers/readers.
The expectation (which needs to be documented, along
with everything else about this server) is that the binary
content be base 64 encoded.
2022-08-08 09:53:19 -07:00
John MacFarlane
297e48661d server: Accept POST instead of GET at babelmark endpoint. 2022-08-08 08:35:32 -07:00
John MacFarlane
4e003e9cdb trypandoc Makefile revisions. 2022-08-07 23:15:24 -07:00
John MacFarlane
3a5168af90 Fix pandoc-server on linux make_artifacts.sh. 2022-08-07 23:02:35 -07:00
John MacFarlane
e4a7ed9e36 stack.yaml - fix server flag. 2022-08-07 23:01:28 -07:00
John MacFarlane
2b30d27669 Rename pandoc-cgi -> pandoc-server. 2022-08-07 21:26:17 -07:00
John MacFarlane
4359e60b93 pandoc-cgi: change babelmark endpoint to GET, as expected. 2022-08-07 19:37:11 -07:00
John MacFarlane
6b9da0cc96 pandoc-cgi:
Remove /batch endpoint; instead, behave differently if
passed an array of JSON objects.

Rename multidingus endpoint to babelmark.
2022-08-07 19:31:40 -07:00
Albert Krewinkel
18484cbf47
LaTeX writer: fix widths of multicolumn cells
Fixes: #8218
2022-08-07 22:10:15 +02:00
John MacFarlane
bf5edd9f02 pandoc-cgi - add multidingus endpoint.
This is what babelmark expects.
2022-08-07 12:51:36 -07:00
John MacFarlane
87391feb02 Improve trypandoc index.html.
Use vanilla JS instead of jquery.
Use new pandoc-cgi interface.
2022-08-07 12:20:00 -07:00
John MacFarlane
83d81b34b6 Add version endpoint to pandoc-cgi 2022-08-07 09:48:56 -07:00
John MacFarlane
48b4e46603 rc build: copy pandoc-cgi to linux release candidate artifacts. 2022-08-06 16:58:58 -07:00
John MacFarlane
ccc195a983 Remove trypandoc flag from stack.yaml 2022-08-06 16:56:13 -07:00
John MacFarlane
5635ef9c57 Replace old trypandoc code with new pandoc-cgi.
This is based on servant. It is less hacky and more extensible.
2022-08-06 14:42:38 -07:00
Albert Krewinkel
fc3b9e763f
Use dev version of gridtables.
Closes: #8216
2022-08-05 13:48:30 +02:00
John MacFarlane
0f80284c3d Convert tool/extract-changes.hs to a Lua filter. 2022-08-03 23:59:39 -07:00
John MacFarlane
6ffc489395 stack.yaml - add skylihting-format-ansi to extra-deps. 2022-08-03 21:45:09 -07:00
John MacFarlane
dc61dd471a Change release date on changelog 2022-08-03 21:29:45 -07:00
John MacFarlane
2cb794fe4f Update AUTHORS.md 2022-08-03 21:27:51 -07:00
John MacFarlane
54f07d259d stack.yaml - update extra-deps. 2022-08-03 21:17:17 -07:00
John MacFarlane
2972211568 Allow latest skylighting. 2022-08-03 21:17:09 -07:00
John MacFarlane
c777fa347a Regenerate README.md 2022-08-03 21:16:57 -07:00
John MacFarlane
a14e7b0c6d Update date on manual. 2022-08-03 21:16:43 -07:00
John MacFarlane
c4840e073a Added some tests to extra-source-files in cabal. 2022-08-03 20:54:07 -07:00
John MacFarlane
3eb52a7b8e Update changelog. 2022-08-03 20:52:21 -07:00
John MacFarlane
2bb3f33296 FB2 writer: fix handling of non-section Divs.
This allows the writer to recurse into those Divs and
find new sections inside them. See #8123.
2022-08-03 16:09:03 -07:00
John MacFarlane
94ba44cec9 Bump to 2.19. 2022-08-03 12:20:56 -07:00
John MacFarlane
ccf82d0172 Provisional 2.19 changelog. 2022-08-03 12:20:40 -07:00
John MacFarlane
c9027fb834 Deprecate deLink. 2022-08-03 12:17:09 -07:00
John MacFarlane
47796aa89e Use latest released versions of citeproc, texmath. 2022-08-03 10:44:12 -07:00
John MacFarlane
473c3f22ec Improve default CSS for task lists.
This ensures that there is a space between the checkbox
and the following content and that subsequent content lines up.

Closes #8151.

Supersedes and closes #8163.
2022-08-03 09:51:21 -07:00
Albert Krewinkel
0d7f80c87f
HTML reader: allow sublists that are not marked as items.
The HTML standard requires all list items to be marked with a `<li>`
tag, but some tools fail to do so for sublists. The reader now accepts
these unwrapped lists as sublists.

Closes: #8150
2022-08-03 15:00:35 +02:00
Albert Krewinkel
b306f2e1fd
Org reader: add missing / to Windows file URI; fixes prev commit 2022-08-03 09:51:13 +02:00
Albert Krewinkel
096863e0ad fillMediaBag: Keep attributes of original image on Span
Images that cannot be fetched are replaced with a Span that contains the
image's description. The span now also retains all original image
attributes and inherits all attributes of the image. Furthermore, the
classes `image` and `placeholder` are added, and path and title are
store in attributes `original-image-src` and `original-image-title`,
respectively.

Closes: #8099
2022-08-02 20:09:14 -07:00
Albert Krewinkel
516c827d61
Org reader: recognize absolute paths on Windows
Fixes: #8201
2022-08-02 23:49:10 +02:00
Albert Krewinkel
4633fc3ca0
doc/libraries.md: add hslua packages written specifically for pandoc 2022-08-02 11:09:51 +02:00
Albert Krewinkel
0e8f424d9e HTML: use CSS flex boxes for columns.
This allows to render an arbitrary number of columns, while the previous
approach assumed exactly two columns.
2022-08-01 10:12:13 -07:00
Albert Krewinkel
7a4afce60c Markdown reader: allow special span classes in any position 2022-08-01 10:03:48 -07:00
Albert Krewinkel
f4a7c0b799 Markdown reader: allow more attributes in special spans
Spans with "smallcaps" as the first class are converted to *SmallCaps*
elements. While previously no other classes or attributes were allowed,
additional classes, attributes, and an identifier are not permitted and
kept in a *SmallCaps* wrapping *Span* element.

The same change is applied to underline spans, where the first class
must be either "ul" or "underline".

Closes: #4102
2022-08-01 10:03:48 -07:00
John MacFarlane
82bf0cb9d4 Fix tests for d2bd9abc4d 2022-07-31 11:03:17 -07:00
John MacFarlane
d2bd9abc4d Html template styles: remove span.underline.
Now we use `<u>` elements for underlined text, so this is
superfluous. (@mb21 correct me if I'm wrong.)
2022-07-31 09:51:54 -07:00
John MacFarlane
bec41531fc Add gridtables to doc/libraries.md. 2022-07-30 09:56:51 -07:00
Albert Krewinkel
c015c35a8a
Support rowspans and colspans in grid tables (#8202)
* Add tests for zero-width and fullwidth chars in grid tables

* T.P.Parsing: simplify `gridTableWith'`, `gridTableWith` [API Change]
  The functions `gridTableWith` and `gridTableWith'` no longer takes a
  boolean argument that toggles whether a table head should be parsed:
  both, tables with heads and without heads, are always accepted now.

* Support colspans, rowspans, and multirow headers in grid tables.

  Grid tables in Markdown, reStructuredText, and Org can now contain cells
  spanning over multiple columns and/or multiple rows; table headers
  containing multiple rows are supported as well.

Note: the markdown writer does not yet support these more complex grid
table features.
2022-07-30 08:56:44 -07:00
Albert Krewinkel
de5620b04d
Add tests for zero-width and fullwidth chars in grid tables 2022-07-30 11:27:14 +02:00
John MacFarlane
f637ccd3bf MediaWiki reader: allow HTML comment after row start.
Closes #8110.
2022-07-28 11:28:02 -07:00