John MacFarlane
509adf7cbf
Bump pandoc-lua-engine to 0.2, depend on latest pandoc
2023-03-27 16:55:18 -07:00
John MacFarlane
1f6fa8784e
macos release build: store architecture in a file.
3.1.2
2023-03-27 15:48:17 -07:00
John MacFarlane
a53d08c871
Fix macos release Makefile (syntax for ARCHITECTURE).
2023-03-27 14:25:48 -07:00
John MacFarlane
c9a04e5cec
Fix release-candidate build for macos.
...
Use ghc 9.4 and cabal 3.10.
2023-03-27 13:31:22 -07:00
John MacFarlane
021dd495d5
Another try at cirrus artifacts...
2023-03-27 13:17:19 -07:00
John MacFarlane
d39921ea82
Cirrus: another attempt to name artifacts.
2023-03-27 12:59:53 -07:00
John MacFarlane
6e45e0e449
Add alias to cirrus tasks.
2023-03-27 11:58:19 -07:00
John MacFarlane
f347fa4041
Another try at compressed cirrus artifacts.
2023-03-27 11:30:22 -07:00
John MacFarlane
881d234e73
Cirrus: try pre-zipping artifacts.
2023-03-27 10:52:32 -07:00
John MacFarlane
fd85560b84
Typst: Use customized term instead of custom macro for def lists.
2023-03-27 10:47:15 -07:00
John MacFarlane
cf6a742710
Typst writer: support column aligns in tables.
2023-03-27 10:47:15 -07:00
Albert Krewinkel
ba911cce33
Typst: fix output for syntax-highlighted inline code.
2023-03-27 11:00:10 +02:00
John MacFarlane
a160d37338
Ensure that macos release packages are named after architecture.
2023-03-26 23:34:49 -07:00
John MacFarlane
4780b4760d
More Typst writer improvements.
...
+ Update manual with variables for Typst.
+ Split `lang` metadata into separate `lang` and `region` for Typst.
+ Fix label positioning in Divs.
+ Fix text customizations (lang, region, font, size) so they actually
work.
+ Update tests and man page.
2023-03-26 21:32:31 -07:00
John MacFarlane
cd6b3bde62
Typst writer improvements.
...
+ Fix non-decimal enumerated lists.
+ Fix endnotes ending with code blocks.
+ Improve default template to use a typst template.
+ Factor out definitions and typst template into partials.
+ Properly escape backslash and quote inside double quotes.
+ Update tests.
2023-03-26 19:02:05 -07:00
John MacFarlane
657ebffd8f
Update authors.
2023-03-26 11:54:49 -07:00
John MacFarlane
5dc3dd5e80
Small update to package description.
2023-03-26 11:53:17 -07:00
John MacFarlane
bb697284c3
Bump to 3.1.2, update changelog.
2023-03-26 11:52:16 -07:00
John MacFarlane
0cba767bd6
Update manual date and man page
2023-03-26 11:11:05 -07:00
John MacFarlane
9919d62df2
Moved a misplaced command test.
2023-03-26 11:09:58 -07:00
John MacFarlane
2a1d5c49d0
Support typst as a pdf-engine.
2023-03-26 10:25:07 -07:00
Albert Krewinkel
2821ca72ff
Use released version of hslua-module-{system,text}
2023-03-26 18:28:46 +02:00
John MacFarlane
fcea9480b9
Update stack.yaml
2023-03-25 22:12:43 -07:00
John MacFarlane
9edf965712
Add typst writer.
...
See #8713 .
2023-03-25 22:05:52 -07:00
John MacFarlane
d8ec5c4b75
Depend on latest releases of texmath, doclayout
2023-03-25 21:43:16 -07:00
John MacFarlane
22996abf69
LaTeX template: set mainfontoptions with \babelfont too.
...
Closes #8721 .
2023-03-25 15:16:54 -07:00
Albert Krewinkel
cf8370f4e5
T.P.App.CommandLineOptions: don't lowercase arg to --from/--read
...
This prevented users to use custom writers with uppercase characters in
their filenames. Format-normalization, including lower-casing of
format identifiers, happens during format parsing.
2023-03-23 07:08:45 +01:00
Christian Christiansen
fe720dd0c6
Org reader: Allow zero width space as an escape character
...
Allow the character U+200B to be used as an escape character as described
in the Org-mode documentation https://orgmode.org/manual/Escape-Character.html
Closes issue #8716 .
2023-03-22 18:29:53 +01:00
Andres Freund
821cf3df4d
DocBook reader: handle "book" for xref references
...
This also adds a test xref to book and part. See also 4ea0508e6 / #8712 .
2023-03-22 08:32:48 -07:00
John MacFarlane
440b438158
macos nighty build: use ghc 9.4.4.
2023-03-22 08:19:24 -07:00
John MacFarlane
4ea0508e68
DocBook reader: handle <part>.
...
Closes #8712 .
2023-03-21 19:06:04 -07:00
Albert Krewinkel
0883efd145
Lua: Fix typo in pandoc.cli doc string.
2023-03-21 07:57:24 +01:00
Albert Krewinkel
f1b55be65f
T.P.Format: add new function formatFromFilePaths [API Change] ( #8710 )
...
* T.P.Format: export `formatFromFilePaths` [API change]
* Lua: add function `pandoc.format.from_path`
* Update lua-filters.md
* The old T.P.App.FormatHeuristics module has been removed.
This is an alternative to #8693 .
2023-03-20 21:19:16 -07:00
John MacFarlane
b5d54f7f38
HTML reader: fix behavior with -native_spans-raw_html.
...
Previously with this configuration, `<span>`s were not treated
as inline elements at all.
Closes #8711 .
2023-03-20 19:42:43 -07:00
John MacFarlane
a14c44cc37
Use dev doclayout
2023-03-20 18:09:36 -07:00
John MacFarlane
01dd910d9a
HTML writer: Remove redundant nubOrd.
...
Now that we're doing `nubOrd` on classes at the end (when changing
pandoc attributes to HTML attributes), we don't need to do it here.
2023-03-20 11:41:59 -07:00
John MacFarlane
df9418c819
Remove superfluous import.
2023-03-20 11:41:48 -07:00
John MacFarlane
9a9946e1c4
Update latex writer tests for change to default template.
2023-03-20 11:41:22 -07:00
Albert Krewinkel
70511692a8
Lua: add Windows-specific note to pandoc.cli.repl docs
2023-03-20 16:06:19 +01:00
Albert Krewinkel
8346cfad4c
lua-filters: auto-generate docs for pandoc.system module.
2023-03-20 16:06:19 +01:00
Albert Krewinkel
0e4b397e70
Lua: fix json.encode for nested AST elements.
...
Ensures that objects with nested AST elements can be encoded as JSON.
2023-03-20 16:06:19 +01:00
Albert Krewinkel
936f44d460
lua-filters: auto-generate docs for pandoc.text module.
2023-03-20 16:06:18 +01:00
Albert Krewinkel
ed5197f525
Lua: load text module as pandoc.text.
...
This only affects the name in the Lua-internal documentation. It is
still possible to load the modules via `require 'text'`, although this
is deprecated.
2023-03-20 16:06:18 +01:00
John MacFarlane
5af2d70b0d
Fix highlight/underline with lualatex.
...
We need the lua-ul package instead of soul, which doesn't
work with lualatex.
Updates default latex template.
Closes #8707 .
2023-03-20 08:05:28 -07:00
John MacFarlane
87ff4d63d1
HTML writer: avoid duplicate classes.
...
Closes #8705 .
2023-03-20 07:59:38 -07:00
Albert Krewinkel
4e2949ceca
lua-filters: Move docs from module text to pandoc.text
...
The latter is easier to use and more consistent with the other modules.
2023-03-20 09:15:56 +01:00
Albert Krewinkel
a53a6edfa5
lua-filters.md: Generate docs for pandoc.utils
...
The documentation in the Haskell sources has been updated.
2023-03-20 08:30:04 +01:00
Albert Krewinkel
a37eda9713
lua-filters.md: auto-generate docs for more modules
2023-03-19 22:39:15 +01:00
Albert Krewinkel
afee37abc7
Lua tests: add more tests for pandoc.mediabag.
2023-03-19 22:38:08 +01:00
Albert Krewinkel
7743c5287a
Lua: add info on when functions became available in pandoc
2023-03-19 15:09:23 +01:00