aboutsummaryrefslogtreecommitdiff
path: root/doc/custom-readers.md
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2022-10-05 12:37:30 +0200
committerJohn MacFarlane <[email protected]>2022-12-16 10:43:01 -0800
commita36f12119fe1a0b70a1a3ff65264e94373a490ce (patch)
tree224f9932bf6e1c120db568a6a111f69a9146317a /doc/custom-readers.md
parentdb0232fc545913a9ea6e81d84fc5ee4d9cc8a185 (diff)
Lua: allow table structure as format spec.
This allows to pass structured values as format specifiers to `pandoc.write` and `pandoc.read`.
Diffstat (limited to 'doc/custom-readers.md')
-rw-r--r--doc/custom-readers.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/custom-readers.md b/doc/custom-readers.md
index 2d9938121..e0b6e4915 100644
--- a/doc/custom-readers.md
+++ b/doc/custom-readers.md
@@ -98,10 +98,10 @@ end
Custom readers can be built such that their behavior is
controllable through format extensions, such as `smart`,
`citations`, or `hard-line-breaks`. Supported extensions are those
-that are present as a key in the global `Extensions` table.
-Fields of extensions that are enabled default have the value
-`true`, while those that are supported but disabled have value
-`false`.
+that are present as a key in the global `Extensions` table. Fields
+of extensions that are enabled default have the value `true` or
+`enable`, while those that are supported but disabled have value
+`false` or `disable`.
Example: A writer with the following global table supports the
extensions `smart`, `citations`, and `foobar`, with `smart` enabled and
@@ -109,9 +109,9 @@ the other two disabled by default:
``` lua
Extensions = {
- smart = true,
- citations = false,
- foobar = false
+ smart = 'enable',
+ citations = 'disable',
+ foobar = true
}
```