-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
In the spirit of:
- https://pandoc.org/CONTRIBUTING.html
-
Write or improve documentation. If you ran into a problem which took more time to figure out than expected, please consider to save other users from the same experience. People writing the documentation tend to lack an outside view, so please help provide one. Good documentation is both difficult and extremely important.
-
Describe your proposed improvement and the problem it solves.
In reading through the Lua Filters documentation recently, I found this section on pandoc.scaffolding for Writers:
- https://pandoc.org/lua-filters.html#module-pandoc.scaffolding
-
Scaffolding for custom writers.
-
But the Fields section is empty (unsure if that is how it is meant to be, but perhaps adding some text to say that explicitly if so to remove ambiguity):
The Writer section is also fairly light on details:
- https://pandoc.org/lua-filters.html#pandoc.scaffolding.Writer
-
An object to be used as a Writer function; the construct handles most of the boilerplate, expecting only render functions for all AST elements (table)
-
In doing some googling, I also came across these pages:
- https://pandoc.org/custom-writers.html
- https://pandoc.org/chunkedhtml-demo/3.3-general-writer-options.html
- https://pandoc.org/chunkedhtml-demo/15-custom-readers-and-writers.html
It would be good to fill out this section of the docs more, even if that is just adding some cross-links to the existing pages on Custom Writers/etc.
Describe alternatives you've considered.
I'm aware of this issue/PR, but the nuance is different:
This docs issue is also unrelated, except for improving the docs UX for new users in general: