@@ -32,7 +32,7 @@ Starting with version 2.0, pandoc makes it possible to write
32filters in Lua without any external dependencies at all. A Lua
32filters in Lua without any external dependencies at all. A Lua
33interpreter (version 5.3) and a Lua library for creating pandoc
33interpreter (version 5.3) and a Lua library for creating pandoc
34filters is built into the pandoc executable. Pandoc data types
34filters is built into the pandoc executable. Pandoc data types
35−are marshalled to Lua directly, avoiding the overhead of writing
35+are marshaled to Lua directly, avoiding the overhead of writing
36JSON to stdout and reading it from stdin.
36JSON to stdout and reading it from stdin.
38Here is an example of a Lua filter that converts strong emphasis
38Here is an example of a Lua filter that converts strong emphasis
@@ -75,7 +75,7 @@ Python (`smallcaps.py`):
75 `pandoc --lua-filter ./smallcaps.lua` 1.03s
75 `pandoc --lua-filter ./smallcaps.lua` 1.03s
77As you can see, the Lua filter avoids the substantial overhead
77As you can see, the Lua filter avoids the substantial overhead
78−associated with marshalling to and from JSON over a pipe.
78+associated with marshaling to and from JSON over a pipe.
80# Lua filter structure
80# Lua filter structure
@@ -292,7 +292,7 @@ use-case would be to load additional modules, or even to alter
292default modules.
292default modules.
294The following snippet is an example of code that might be useful
294The following snippet is an example of code that might be useful
295−when added to `init.lua`. The snippet adds all unicode-aware
295+when added to `init.lua`. The snippet adds all Unicode-aware
296functions defined in the [`text` module](#module-text) to the
296functions defined in the [`text` module](#module-text) to the
297default `string` module, prefixed with the string `uc_`.
297default `string` module, prefixed with the string `uc_`.
@@ -307,21 +307,25 @@ colon syntax (`mystring:uc_upper()`).
308# Debugging Lua filters
308# Debugging Lua filters
310−It is possible to use a debugging interface to halt execution and step through a
310+It is possible to use a debugging interface to halt execution and
311−Lua filter line by line as it is run inside Pandoc. This is accomplished using
311+step through a Lua filter line by line as it is run inside Pandoc.
312−the remote-debugging interface of the package
312+This is accomplished using the remote-debugging interface of the
313−[`mobdebug`](https://github.com/pkulchenko/MobDebug). Although mobdebug can be
313+package [`mobdebug`](https://github.com/pkulchenko/MobDebug).
314+Although mobdebug can be run from the terminal, it is more useful
314−run from the terminal, it is more useful run within the donation-ware Lua editor
315+run within the donation-ware Lua editor and IDE,
315−and IDE, [Zerobrane](https://studio.zerobrane.com/). Zerobrane offers a REPL
316+[ZeroBrane](https://studio.zerobrane.com/). ZeroBrane offers a
316−console and UI to step-through and view all variables and state.
317+REPL console and UI to step-through and view all variables and
318If you already have Lua 5.3 installed, you can add
320If you already have Lua 5.3 installed, you can add
319−[`mobdebug`](https://luarocks.org/modules/paulclinger/mobdebug) and its
321+[`mobdebug`](https://luarocks.org/modules/paulclinger/mobdebug)
320−dependency [`luasocket`](https://luarocks.org/modules/luasocket/luasocket) using
323+[`luasocket`](https://luarocks.org/modules/luasocket/luasocket)
321−[`luarocks`](https://luarocks.org), which should then be available on the path.
324+using [`luarocks`](https://luarocks.org), which should then be
325+available on the path. ZeroBrane also includes both of these in
322−Zerobrane also includes both of these in its package, so if you don't want to
326+its package, so if you don't want to install Lua separately, you
323−install Lua seperately, you should add/modify your `LUA_PATH` and `LUA_CPATH` to
327+should add/modify your `LUA_PATH` and `LUA_CPATH` to include the
324−include the correct locations; [see detailed instructions
328+correct locations; [see detailed instructions
325here](https://studio.zerobrane.com/doc-remote-debugging).
329here](https://studio.zerobrane.com/doc-remote-debugging).
327# Examples
331# Examples
@@ -1765,7 +1769,7 @@ A list is any Lua table with integer indices. Indices start at
1765one, so if `alist = {'value'}` then `alist[1] == 'value'`.
1769one, so if `alist = {'value'}` then `alist[1] == 'value'`.
1767Lists, when part of an element, or when generated during
1771Lists, when part of an element, or when generated during
1768−marshalling, are made instances of the `pandoc.List` type for
1772+marshaling, are made instances of the `pandoc.List` type for
1769convenience. The `pandoc.List` type is defined in the
1773convenience. The `pandoc.List` type is defined in the
1770[*pandoc.List*](#module-pandoc.list) module. See there for
1774[*pandoc.List*](#module-pandoc.list) module. See there for
1771available methods.
1775available methods.
@@ -2250,7 +2254,7 @@ format, and functions to filter and modify a subtree.
2251[`Emph (content)`]{#pandoc.emph}
2255[`Emph (content)`]{#pandoc.emph}
2253−: Creates an inline element representing emphasised text.
2257+: Creates an inline element representing emphasized text.
2255 Parameters:
2259 Parameters:
@@ -2453,7 +2457,7 @@ format, and functions to filter and modify a subtree.
2454[`Strikeout (content)`]{#pandoc.strikeout}
2458[`Strikeout (content)`]{#pandoc.strikeout}
2456−: Creates text which is striked out.
2460+: Creates text which is struck out.
2458 Parameters:
2462 Parameters:
@@ -2912,7 +2916,7 @@ Usage:
2913`make_sections (number_sections, base_level, blocks)`
2917`make_sections (number_sections, base_level, blocks)`
2915−Converst list of [Blocks](#type-block) into sections.
2919+Converts list of [Blocks](#type-block) into sections.
2916`Div`s will be created beginning at each `Header`
2920`Div`s will be created beginning at each `Header`
2917and containing following content until the next `Header`
2921and containing following content until the next `Header`
2918of comparable level. If `number_sections` is true,
2922of comparable level. If `number_sections` is true,