Commit Graph
16814 Commits
Author SHA1 Message Date
John MacFarlane 87716265c1 Man writer: don't emit .hy...
regardless of setting of `hyphenate` variable.  See #9020.
2023-08-24 21:24:33 -07:00
John MacFarlane 3cb6130d1a JATS writer: fix placement of ref-list...
...when no title is specified for the reference section.
(In this case we place it in `back` with an empty title.)
Closes #9017.
2023-08-23 16:10:00 -07:00
John MacFarlane d21a9cd7f8 Also escape % in URLs.
This improves the fix to #9017 in commit
7c4354646b

An alternative would be to avoid backslash escaping `#` and `%`
in URLs, and instead always add `fragile` to the slide environment.
2023-08-23 12:37:49 -07:00
John MacFarlane 7c4354646b LaTeX writer: backslash-escape # in URLs. Closes #9014. 2023-08-23 08:04:57 -07:00
John MacFarlane 54b9eeb6a7 Update AUTHORS.md 3.1.6.2 2023-08-22 15:55:02 -07:00
John MacFarlane 644d75fc65 Update changelog. 2023-08-22 15:53:58 -07:00
John MacFarlane fcda38bced stack.yaml - update tls version. 2023-08-22 13:44:50 -07:00
John MacFarlane 1d951b3e7d Fix spacing errors. 2023-08-22 13:42:56 -07:00
John MacFarlane d54151c32d Bump to 3.1.6.2, update manual date and man page. 2023-08-22 13:39:33 -07:00
John MacFarlane ca9855b568 Use lastest texmath, typst-symbols, typst.
Targets typst 0.7.
2023-08-22 13:33:10 -07:00
John MacFarlane 40accba747 Typst writer: use ~ for nonbreaking space.
And escape literal `~`.
Closes #9010.
2023-08-21 11:29:27 -07:00
John MacFarlane 70329edcd7 LaTeX writer: improve internal links and targets.
We no longer wrap section headings in a `\hypertarget`.
This is unnecessary (hyperref creates an anchor based on the
label) and it interferes with tagging.

In addition, we now use `\hyperref` rather than `\hyperlink`
for internal links.

Currently `\hypertarget` is still being used for link anchors
not on headings.

Closes #8744. Thanks to @u-fischer.
2023-08-19 09:52:01 -07:00
John MacFarlane 068fce4293 Docx reader: omit "Table NN" from caption.
Closes #9002.
2023-08-18 17:50:59 -07:00
John MacFarlane bd4de143d0 Constrain to older typst-symbols for now 2023-08-18 11:24:30 -07:00
John MacFarlane dc36eb4311 Use dev texmath, update stack.yaml resolver. 2023-08-18 10:58:36 -07:00
Brian Leung 2dde57569a Org reader: allow example lines to end immediately after the colon
See the regexp at https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/org-element.el?h=d1e4b9351941aa9241ab3aa0a34256376b7eca94#n2420.
2023-08-18 10:00:49 -07:00
John MacFarlane 6067e477ac Docx reader: Avoid spurious block quotes in list items.
The docx reader was overzealous in detecting indented
paragraphs as block quotes, leading to list items sometimes
being put in block quotes (especially in docx created by
Google Docs).

Closes #8836.
2023-08-14 10:07:14 -07:00
John MacFarlane 948567f200 Fix tests for change to template in #8999. 2023-08-13 19:23:53 -07:00
Jackson Schuster cfe8cc7979 Change semicolon to colon 2023-08-13 19:20:47 -07:00
Julia Diaz 6673f832ea Fix display of block elements in JATS reader (PR #8971)
A number of block elements, like disp-quote, list, and disp-formula, were always treated as inlines if appearing inside paragraphs, even if their usage granted a separate block. The function isElementBlock has been refined to prevent this, and a number of specific parse cases have been added to parseBlock.

Also, some minimal cleanup of the test file, in order for it to pass XML validation against the JATS DTD 1.3 (it was not compliant with the current or any previous versions of JATS).

Closes #8889.
2023-08-10 13:02:43 -07:00
John MacFarlane cbb33fefb7 LaTeX writer: Improve escaping of URIs in href, url.
Closes #8992.
2023-08-09 12:09:41 -07:00
John MacFarlane cc371a9485 Typst writer: put the label in right place for Div, use #block.
Closes #8991.

Previously we were putting the label at the beginning of
the Div's contents, but according to the documentation such a
label gets attached to the *preceding* element.  We now use an
explicit `#block` and add the label at the end.
2023-08-09 11:38:38 -07:00
John MacFarlane e611edb7d8 HTML reader: avoid duplicate id on header and div.
Closes #8991.
2023-08-09 11:36:32 -07:00
John MacFarlane fb47bde3a3 Bump pandoc-lua-engine version to 0.2.1.1 3.1.6.1 pandoc-server-0.1.0.2 pandoc-lua-engine-0.2.1.1 2023-08-06 19:09:24 -07:00
John MacFarlane c473e53266 Bump pandoc-server version to 0.1.0.2. 2023-08-06 19:09:01 -07:00
John MacFarlane a6c067eb7b pandoc.cabal: bump version to 3.1.6.1. 2023-08-06 12:36:26 -07:00
John MacFarlane d573cfabbc Update AUTHORS.md 2023-08-06 11:48:31 -07:00
John MacFarlane 14b5298052 Bump dates, update dependencies. 2023-08-06 11:44:41 -07:00
John MacFarlane 9164f4b677 Use released pandoc-types 1.23.1. 2023-08-06 11:32:07 -07:00
John MacFarlane d3f8f50264 ODT writer: Use a style for Highlighted, so color can be adjusted. 2023-08-06 11:09:04 -07:00
John MacFarlane c861e12d16 Provisional changelog for next release. 2023-08-06 10:56:51 -07:00
John MacFarlane e87addb58f HTML reader: properly calculate RowHeadColumns.
The previous algorithm did not handle rowspans; this one does.
Closes #8984.
2023-08-05 23:00:14 -07:00
John MacFarlane 0beab6345f Add test for #8984. 2023-08-05 11:57:31 -07:00
John MacFarlane 08bef38491 Revert "Revert "Update #8764 command test for latest change to HTML table parser (#8634).""
This reverts commit acbc382ff4.
2023-08-05 11:54:31 -07:00
John MacFarlane 1d62883e14 HTML reader: require unanimity for RowHeadColumns.
Previously we used the max.  #8634 switched to the min, but this
had bad results.  This commit sets the RowHeadColumns to the consensus
value from all rows, or 0 if there is no consensus.

See #8984.
2023-08-05 11:48:29 -07:00
John MacFarlane 0a1ea3d8ca HTML reader: fix bug in calculation of RowHeadColumns.
We were adding up cells, not colspans.
Note: there may still be incorrect results in the presence of
rowspans.

See https://github.com/jgm/pandoc/issues/8984#issuecomment-1666467926
2023-08-05 11:28:03 -07:00
John MacFarlane d7a7f5ad19 Revert "Update TableBody RowHeadColumns caculation: change from max to min (#8634)"
This reverts commit f257c97170.

For the reason, see #8984.  The change caused the "grid shape"
of some tables to change.
2023-08-05 11:16:22 -07:00
John MacFarlane acbc382ff4 Revert "Update #8764 command test for latest change to HTML table parser (#8634)."
This reverts commit 52d352a5ae.
2023-08-05 11:16:10 -07:00
John MacFarlane 9c1147f483 Use dev pandoc-types.
This fixes a regression with toJSONFilter, which in 1.23.0.1 no longer
worked on pure values of type `a -> [a]`.

Closes #8976.
2023-08-04 21:46:50 -07:00
John MacFarlane 0873895416 OpenDocument writer: implement syntax highlighting.
Still unimplemented: global background colors, line numbers.

Closes #6710, obsoletes #6717.
2023-08-04 20:43:39 -07:00
John MacFarlane 889dcbe99c Use ghc 9.6 for release builds.
See #8947.
2023-08-04 13:54:04 -07:00
John MacFarlane 5e1b9591e1 Started implementing syntax highlighting for ODT.
Currently only colors are supported, not other text styles.

This change includes a new default opendocumnet template.

See #6710.
2023-08-04 13:31:06 -07:00
John MacFarlane 4670722dfa Remove redundant import. 2023-08-04 13:18:25 -07:00
John MacFarlane 4caa9a0808 OpenDocument writer: add syntax highlighting tags for CodeBlock.
We still aren't injecting the style, but this will improve things.
See #6710.
2023-08-04 11:40:05 -07:00
John MacFarlane 655d87657e Support highlighted text in ODT/OpenDocument writers.
See #8960.

This is a prelimary fix. A better fix would use a named style
so colors could be adjusted.
2023-08-04 10:27:10 -07:00
Diogo Almiro aa21f79e89 Documentation - FAQs - Links (#8978)
Fix some links and add link text.
2023-08-04 09:51:54 -07:00
John MacFarlane 7b8e8f6f52 SelfContained: retain attributes in svg tag...
when referring to another svg's content using `<use>`.
Closes #8969.
2023-07-27 09:56:56 -06:00
John MacFarlane 3401849585 SelfContained: Allow units in width and height for svg.
Units are optional but allowed.
2023-07-27 09:19:42 -06:00
John MacFarlane 95140b428b SelfContained: don't coerce calculated width/height to Int.
Fractional values are okay.  See #8969.
2023-07-26 09:58:22 -06:00
John MacFarlane ecb59e1cde SelfContained: fix calculation of svg width and height.
We were computing width and height from viewBox incorrectly.
See #8969.
2023-07-26 09:49:37 -06:00