Albert Krewinkel
1e8799ca60
doc/custom-writers.md: document the separator arg of Writer.Blocks
...
Mention that the default `Writer.Blocks` function in
`pandoc.scaffolding.Writer` takes a separator as an optional second
argument.
2024-06-18 09:13:05 +02:00
Albert Krewinkel
e6f298f19f
doc/lua-filters.md: Fix outdated docs
...
Documentation of math and quoting related functions and fields was
updated. The docs had been outdated since at least pandoc 2.17.
2024-06-11 16:45:24 +02:00
Albert Krewinkel
7b85353780
doc/lua-filters.md: correct return type of pandoc.layout.render.
2024-06-10 07:28:00 +02:00
Albert Krewinkel
d416619298
doc/lua-filters.md: Document operators of the "Doc" type.
2024-06-10 07:10:15 +02:00
Albert Krewinkel
da4a55a985
lua-filters: auto-generate docs for pandoc.layout module.
2024-06-09 22:19:57 +02:00
Albert Krewinkel and Carsten Gips
9af5b1ca8b
Lua: add function pandoc.template.get.
...
The function allows to specify a template with the same argument value
that would be used with the `--template` command line parameter.
Closes : #9854
Co-authored-by: Carsten Gips <cagix@hsbi.de >
2024-06-08 08:42:47 -07:00
Albert Krewinkel
7db19d8cd4
Update more copyright dates to 2024.
2024-06-08 16:46:42 +02:00
Albert Krewinkel
bfb0475d67
doc/lua-filters: autogenerate docs for module pandoc.template
2024-06-07 20:36:29 +02:00
Albert Krewinkel
430d525378
Lua: allow passing an environment to run_lua_filter.
...
The default is now to use a *copy* of the global environment when running a
filter; this ensures better separation when `run_lua_filter` is used multiple
times. A custom environment can be specified via the optional third parameter.
2024-06-07 08:36:24 +02:00
Carlos Scheidegger
347985fb83
typst,table - support '.typst:no-figure' and 'typst:figure:kind=kind' ( #9778 )
...
This extends support for fine-grained properties in Typst.
If the `typst:no-figure` class is present on a Table, the table will not be placed in a figure.
If the `typst:figure:kind` attribute is present, its value will be used for the figure's `kind`.
These features are documented in `doc/typst-property-output.md`.
Closes #9777 .
2024-06-03 09:52:53 -07:00
John MacFarlane
b9491ccbbc
Support supplementary-material in metadata for jats_articlepublishing.
...
See #9818 .
2024-06-03 09:37:35 -07:00
Albert Krewinkel
04dba0d771
Lua: fix typo in run_lua_filter
...
Fixes previous commit ad68ff34ae .
2024-05-28 13:46:18 +02:00
Albert Krewinkel
ad68ff34ae
Lua: add function pandoc.utils.run_lua_filter ( #9803 )
2024-05-27 14:20:31 -07:00
Albert Krewinkel
f3ed3b3614
doc/custom-writers.md: fix usage of Template in example
2024-05-24 19:51:46 +02:00
Albert Krewinkel
e5c135e68e
Lua: add a pandoc.log module.
2024-05-10 19:03:29 -07:00
Albert Krewinkel
0f29d8195e
Lua: use hslua-module-zip-1.1.3 to fix the windows build
2024-05-05 21:16:31 +02:00
Albert Krewinkel
018922d10f
Lua: use newest zip module.
...
This adds a `symlink` function to Entry objects, allowing to check if an
entry represents a symbolic link.
2024-05-05 17:54:33 +02:00
Albert Krewinkel
32f0ed9ea3
Lua: improve pandoc.json.decode docs.
2024-05-05 00:25:29 +02:00
Albert Krewinkel
1a15c9f6a9
tools/update-lua-module-docs.lua: cleanup, fix code
2024-05-04 23:56:01 +02:00
Albert Krewinkel
c45f163b4d
Lua: fix generated docs.
...
Update and fix docs for `pandoc.types.Version` and `pandoc.utils.type`.
2024-05-04 22:17:01 +02:00
Albert Krewinkel
5f937eae61
Lua: add new module pandoc.image
...
The module provides basic querying functions for image properties.
2024-04-16 10:23:08 -07:00
Gordon Woodhull
99a45917ac
Typst writer: property output ( #9648 )
...
The Typst writer will pass on specially marked attributes as raw Typst
parameters on selected elements. This allows extensive customization
using filters.
An attribute with key `typst:PROP` will set the PROP parameter on
the corresponding Typst element.
An attribute with key `typst:text:PROP` will set a parameter on a Typst
`#set text()` rule or a text element.
The feature has been implemented for the following elements:
* span text
* div and div text
* table and table text
* table cell and table cell text
It would be possible to support more elements in the future.
A separate document has been added that provides extensive
documentation and examples of the use of this feature.
2024-04-15 09:32:32 -07:00
Chandrahas77
5e507024b9
fixed typo in doc/org.md ( #9634 )
2024-04-04 23:13:00 -07:00
Carlos Scheidegger
e4ac26d255
Update lua-filters.md ( #9611 )
...
Fix formatting of `pandoc.utils.type` usage entry
2024-03-27 12:22:10 -06:00
standstaff
ad1e979c92
Typos: remove repeated words ( #9577 )
...
Signed-off-by: standstaff <zhengxingru@yeah.net >
2024-03-15 10:38:16 -07:00
John MacFarlane
80303beb35
getting-started.md: refer to GH discussions instead of pandoc-discuss.
2024-01-05 21:35:55 -08:00
John MacFarlane
0a298cb1be
Lua filters documentation: remove reference to phrenology.
...
Closes #9024 .
2023-08-25 16:23:52 -07:00
Diogo Almiro
aa21f79e89
Documentation - FAQs - Links ( #8978 )
...
Fix some links and add link text.
2023-08-04 09:51:54 -07:00
Vladimir Alexiev
52297a2bd3
add to "Academic publishing workflows" ( #8742 )
...
resolves #8696
2023-06-22 10:45:49 -07:00
Matt Dodson
bb412768d8
doc/lua-filters: use full field name in example ( #8857 )
...
Remove old `.c` alias that mimics the JSON representation:
- Since 2.15ish, the lua structure no longer closely resembles that
JSON representation
- even if it did, introductory examples should be explicit. Using
an undocumented alias creates ambiguity.
2023-05-17 23:09:23 +02:00
thron7
7ec7512aa0
doc/lua-filters.md: fix copy-and-paste error ( #8798 )
2023-04-20 13:17:12 +02:00
Toni Dietze
2b420a1f89
doc/lua-filters.md: fix wrong anchor
2023-04-05 18:46:10 +02:00
perro tuerto
2007fdd575
doc/lua-filter.md: Fix typos. ( #8734 )
2023-03-30 07:18:41 +02:00
Christian Christiansen
8db71cecb5
Update documentation for org-mode
...
Add zero width space to the default values of pandoc-emphasis-pre and
pandoc-emphasis-post. Zero width space was added to solve issue #8716 .
2023-03-28 09:32:34 -07: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
Albert Krewinkel
8346cfad4c
lua-filters: auto-generate docs for pandoc.system module.
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
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
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
a23d14079c
pandoc-cli: add a Lua REPL
2023-03-17 09:18:41 -07:00
John MacFarlane
1c70458f3e
Add some notes on using NiX to develop pandoc.
2023-03-15 09:14:41 -07:00
John MacFarlane
7ce7c74711
Add doc/extras.md.
...
This was in the website repo; now we'll keep it here and copy it over.
2023-03-14 16:02:46 -07:00
John MacFarlane
32e351ba8b
doc/org.md: suggest use of -s to get metadata fields.
...
See #8688 . Obsoletes #8690 .
2023-03-13 19:28:15 -07:00
Albert Krewinkel
a496a3409f
doc/lua-filters.md: improve docs for pandoc.zip.
2023-03-10 18:40:26 +01:00