Commit Graph
16732 Commits
Author SHA1 Message Date
John MacFarlane 29c5afb305 RST writer: fix figure handling.
This fixes a number of regressions from pandoc 2.x.

Properly handle caption, alt attribute in figures.

No longer treat a paragraph with a single image in it as a figure
(we have a dedicated Figure element now).

Closes #8930, closes #8871.
2023-07-12 09:13:32 -07:00
John MacFarlane 21b51d214d CI: don't trigger ci on changes to cirrus config. 2023-07-12 08:23:50 -07:00
John MacFarlane a31cb2ab62 Revert "Cirrus amd64 build: disable simdutf flag"
This reverts commit 3e870525da.
2023-07-12 08:03:59 -07:00
John MacFarlane 3e870525da Cirrus amd64 build: disable simdutf flag 2023-07-12 07:31:10 -07:00
John MacFarlane ce7146da9a Allow latest commonmark-extensions.
This allows entities in wikilinks.
2023-07-12 07:31:10 -07:00
John MacFarlane 0efba28919 Fix cirrus for amd64. 2023-07-11 15:54:52 -07:00
John MacFarlane 6216c20162 Cirrus build: a better way to print info about dependent packages. 2023-07-11 14:56:53 -07:00
John MacFarlane 0273ff3b31 Add -v to cirrus build script. 2023-07-11 14:46:33 -07:00
John MacFarlane 100473377d SelfContained: Tweak identifier generation for svgs...
so the difference between line endings between Windows and Unix
is ignored.

This allows test output to be deterministic across OS versions.
2023-07-11 14:24:31 -07:00
John MacFarlane 3eaff8de8a Cirrus build script: print cabal freeze file...
so we can see exactly what dependencies this version was built with.
2023-07-11 14:18:19 -07:00
John MacFarlane 94832af98a SelfContained: Use inline svg instead of data uris...
for SVG images in HTML5. Closes #8948.

Note that SelfContained does not have access to the writer
name, so we check for HTML5 by determining whether the document
starts with `<DOCTYPE! html>`. This means that inline SVG
won't be used when generating document fragments.

An API change could be contemplated to give more flexibility,
but this is okay for now.
2023-07-11 10:59:33 -07:00
John MacFarlane 3496109d49 Typst reader: fix regression in recognition of display math.
The last release caused all math to be parsed as inline math.
Closes #8949.
2023-07-10 21:24:23 -07:00
John MacFarlane 79091f9910 Docx writer: Copy "mirror margins" property from reference.docx.
Closes #8946.
2023-07-09 22:15:51 -07:00
John MacFarlane c7c7da3f92 Update changelog. 3.1.5 2023-07-07 07:51:56 -07:00
John MacFarlane 9eb42d01ce Fix babel name for fa (should be "persian"). Closes #8944.
Affects LaTeX writer.
2023-07-07 07:48:47 -07:00
hseg e0ea7d5297 Fix build (transitive dep not in lts) (#8945)
Commit 921b0949f4 bumped the skylighting-core
version, which requires a newer version of xml-conduit than is available in
lts-21.0.
Bump the version in stack.yaml
2023-07-07 07:44:59 -07:00
John MacFarlane 7c71eebafe Update AUTHORS.md. 2023-07-06 23:21:15 -07:00
John MacFarlane d32b85686d Update README.md 2023-07-06 23:19:46 -07:00
John MacFarlane ee42fe7281 Remove redundant lines in stack.yaml 2023-07-06 23:19:15 -07:00
John MacFarlane 4f37b95cd1 Regenerate man page. 2023-07-06 23:17:56 -07:00
John MacFarlane 1d3e638ed8 Update manual date 2023-07-06 23:17:45 -07:00
John MacFarlane f53a7fc897 Use released typst 0.3.0.0. 2023-07-06 23:17:06 -07:00
John MacFarlane 921b0949f4 Depend on released skylighting 0.13.4. 2023-07-06 22:51:07 -07:00
John MacFarlane d76ca4624d Use released pandoc-types. 2023-07-06 22:48:13 -07:00
John MacFarlane 3fa796d054 Provisional version bump to 3.1.5. 2023-07-06 22:05:27 -07:00
John MacFarlane b34da208b3 Provisional changelog update. 2023-07-06 22:04:22 -07:00
John MacFarlane 500b735d7e Use latest dev typst-hs. 2023-07-06 21:38:53 -07:00
John MacFarlane 137620c7cd Typst reader: filter out CR in raw. 2023-07-06 14:15:38 -07:00
John MacFarlane a2be4ac62b Add typst reader tests.
Closes #8942.
2023-07-06 12:20:20 -07:00
John MacFarlane 001531e604 Typst reader: handle blockish content for link element. 2023-07-06 11:47:27 -07:00
John MacFarlane d5bdfe2b94 Use latest dev typst-hs 2023-07-06 11:47:20 -07:00
John MacFarlane f560b47b13 Rewrite Typst reader.
This structure should make it easier to add new block and inline
handlers.
2023-07-06 11:09:27 -07:00
John MacFarlane ca7101765c Typst reader: allow block-level content in text element. 2023-07-06 09:46:08 -07:00
John MacFarlane 4d2924032d Move test/tables.asciidoctor -> test/tables.asciidoc_legacy. 2023-07-06 08:52:12 -07:00
John MacFarlane c693a8107f MediaWiki reader: revise treatment of "link trail."
Previously we only included ASCII letters. That is correct for
English but not for, e.g., Spanish (see comment in #8525).
A safer approach is to include all letters except those in the
CJK unified ideograph ranges.
2023-07-05 23:12:28 -07:00
John MacFarlane d3e485fcb0 Use latest dev typst-hs. 2023-07-05 12:44:57 -07:00
John MacFarlane e09c560256 Update typst-hs revision. 2023-07-05 11:25:30 -07:00
John MacFarlane e55ae16138 Typst reader: handle style, align, place in inline contexts too. 2023-07-05 11:07:51 -07:00
John MacFarlane 499276a4e5 Use latest dev typst-hs 2023-07-05 10:48:56 -07:00
John MacFarlane 2467277f07 Fix asciidoc tests 2023-07-05 10:48:44 -07:00
John MacFarlane adba9d460c Make modern AsciiDoc the target for asciidoc.
The AsciiDoc community now regards the dialect parsed by `asciidoctor`
as the official AsciiDoc syntax, so it should be the target of our
`asciidoc` format.

Closes #8936.

The `asciidoc` output format now behaves like `asciidoctor` used to.
`asciidoctor` is a deprecated synonynm. For the old `asciidoc` behavior
(targeting the Python script), use `asciidoc_legacy`.

The templates have been consolidated. Instead of separate
`default.asciidoctor` and `default.asciidoc` templates, there is
just `default.asciidoc`.

Text.Pandoc.Writers.AsciiDoc API changes:

- `writeAsciiDoc` now behaves like `writeAsciiDoctor` used to.
- `writeAsciiDoctor` is now a deprecated synonym for `writeAsciiDoc`.
- New exported function `writeAsciiDocLegacy` behaves like
  `writeAsciDoc` used to.
2023-07-05 09:10:36 -07:00
John MacFarlane 7ba9ecfb5a Fix example involving B. Russell.
Closes #8940.
2023-07-04 21:35:32 -07:00
John MacFarlane 45a6276da2 Use latest dev typst-hs. 2023-07-04 13:18:39 -07:00
John MacFarlane 2642cf17cf stack.ymal - add toml-parser (dep of typst-hs). 2023-07-04 11:17:37 -07:00
John MacFarlane fc74620915 stack.yaml: update typst-symbols version. 2023-07-04 11:05:35 -07:00
John MacFarlane 2d20b3aad0 Typst writer: support unlisted class in headings.
Closes #8941.
2023-07-04 11:04:14 -07:00
John MacFarlane ae57c6e3fb Use latest dev typst-hs. 2023-07-04 10:56:04 -07:00
John MacFarlane 104ffc6596 Use latest dev typst-hs. 2023-07-04 09:00:20 -07:00
John MacFarlane b4d7937852 Get things working with latest dev version of typst.
This supports package loading (as long as the package has been
cached or is local).
2023-07-03 22:50:10 -07:00
John MacFarlane 1b52baaf37 Typst writer: consolidate bibliography files...
into one `#bibliography` command. (Separate bibliographies are
not possible.)  Closes #8937.
2023-07-03 08:24:01 -07:00