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
Albert Krewinkel
07c56322c2
lua-filters.md: generate docs from Haskell for pandoc.structure
2023-03-19 13:35:02 +01:00
Albert Krewinkel
ec1a06f5ef
lua-filters.md: autogenerate parts of the Lua API docs
2023-03-19 12:33:04 +01:00
Albert Krewinkel
203a652e43
Lua: add pandoc.cli.repl function
2023-03-18 15:00:45 -07:00
Albert Krewinkel
f9b6777a92
pandoc-cli: require hslua-cli-1.4.1
...
This fixes a bug where the program would not enter interactive mode if
`-v`, `-e`, or `-l` was used together with the `-i` command line flag.
2023-03-18 18:26:12 +01:00
Albert Krewinkel
e110da44ef
stack.yaml: more version updates
2023-03-18 09:20:56 +01:00
Albert Krewinkel
4b80cc6eef
stack.yaml: Use newest hslua-* versions
2023-03-18 09:18:24 +01:00
John MacFarlane
7f1a8f9cee
Update docx golden tests for style changes.
2023-03-17 22:27:52 -07:00
John MacFarlane
80e750aa5e
Docx writer: include abstract title.
...
Closes #8702 .
Uses localized term for abstract.
2023-03-17 20:06:17 -07:00
Albert Krewinkel
a23d14079c
pandoc-cli: add a Lua REPL
2023-03-17 09:18:41 -07:00
John MacFarlane
74328eba7e
CI/Nightly: use ghc 9.4 for windows build.
2023-03-16 09:27:51 -07:00
John MacFarlane
84262f2d06
CI: use latest point release for each ghc version.
2023-03-16 08:49:28 -07:00
John MacFarlane
3c1fe09b1f
nightly: install ghc 9.4.4 for linux.
...
Otherwise it will use 9.6.1 which doesn't yet work.
2023-03-16 08:49:28 -07:00
Albert Krewinkel
b5b9edf564
Lua: keep the Lua stack clean
...
A metatable used during initialization was not properly removed from the
stack. Likewise, accessing the CommonState from Lua previously led to
the pollution of the Lua stack with a left-over value.
2023-03-15 20:57:45 +01:00
John MacFarlane
369e7b52e8
Fix template for babelfonts so it conforms with documentation.
...
Closes #8697 .
2023-03-15 09:20:39 -07:00
John MacFarlane
774e3be265
HTML writer: use img element instead of embed for .svg.gz...
...
and .png.gz etc.
Closes #8699 .
2023-03-15 09:15:01 -07:00
John MacFarlane
1c70458f3e
Add some notes on using NiX to develop pandoc.
2023-03-15 09:14:41 -07:00
John MacFarlane
1bfab1d11e
HTML writer footnotes changes:
...
When `--reference-location=section` or `=block`, use an
`aside` element for the notes rather than a `section`.
When `--reference-location=section`, include the `aside`
element inside the section element, rather than outside.
(In slide shows, this option causes footnotes on a slide
to be displayed at the bottom of the slide.)
Closes #8695 .
2023-03-14 21:49:05 -07:00
John MacFarlane
03d80ccd38
Remove confusing comment.
2023-03-14 19:36:36 -07:00