@@ -29,13 +29,13 @@ used by anyone who has a certain version of the pandoc
2929executable.
3030
3131Starting with version 2.0, pandoc makes it possible to write
32−filters in lua without any external dependencies at all. A lua
33−interpreter (version 5.3) and a lua library for creating pandoc
32+filters in Lua without any external dependencies at all. A Lua
33+interpreter (version 5.3) and a Lua library for creating pandoc
3434filters is built into the pandoc executable. Pandoc data types
35−are marshalled to lua directly, avoiding the overhead of writing
35+are marshalled to Lua directly, avoiding the overhead of writing
3636JSON to stdout and reading it from stdin.
3737
38−Here is an example of a lua filter that converts strong emphasis
38+Here is an example of a Lua filter that converts strong emphasis
3939to small caps:
4040
4141``` lua
@@ -74,7 +74,7 @@ Python (`smallcaps.py`):
7474 `pandoc --filter ./smallcaps.py` 1.40s
7575 `pandoc --lua-filter ./smallcaps.lua` 1.03s
7676
77−As you can see, the lua filter avoids the substantial overhead
77+As you can see, the Lua filter avoids the substantial overhead
7878associated with marshalling to and from JSON over a pipe.
7979
8080# Lua filter structure
@@ -91,10 +91,10 @@ then it would be applied like this:
9191
9292The `--lua-filter` option may be supplied multiple times. Pandoc
9393applies all filters (including JSON filters specified via
94−`--filter` and lua filters specified via `--lua-filter`) in the
94+`--filter` and Lua filters specified via `--lua-filter`) in the
9595order they appear on the command line.
9696
97−Pandoc expects each lua file to return a list of filters. The
97+Pandoc expects each Lua file to return a list of filters. The
9898filters in that list are called sequentially, each on the result
9999of the previous filter. If there is no value returned by the
100100filter script, then pandoc will try to generate a single filter
@@ -104,7 +104,7 @@ those of pandoc elements (e.g., `Str`, `Para`, `Meta`, or
104104
105105For each filter, the document is traversed and each element
106106subjected to the filter. Elements for which the filter contains
107−an entry (i.e. a function of the same name) are passed to lua
107+an entry (i.e. a function of the same name) are passed to Lua
108108element filtering function. In other words, filter entries will
109109be called for each corresponding element in the document,
110110getting the respective element as input.
@@ -208,7 +208,7 @@ variables.
208208
209209# Pandoc Module
210210
211−The `pandoc` lua module is loaded into the filter's lua
211+The `pandoc` Lua module is loaded into the filter's Lua
212212environment and provides a set of functions and constants to
213213make creation and manipulation of elements easier. The global
214214variable `pandoc` is bound to the module and should generally
@@ -222,15 +222,15 @@ functionalities.
222222
223223Element creator functions like `Str`, `Para`, and `Pandoc` are
224224designed to allow easy creation of new elements that are simple
225−to use and can be read back from the lua environment.
226−Internally, pandoc uses these functions to create the lua
225+to use and can be read back from the Lua environment.
226+Internally, pandoc uses these functions to create the Lua
227227objects which are passed to element filter functions. This means
228228that elements created via this module will behave exactly as
229229those elements accessible through the filter function parameter.
230230
231231## Exposed pandoc functionality
232232
233−Some pandoc functions have been made available in lua:
233+Some pandoc functions have been made available in Lua:
234234
235235- [`walk_block`](#pandoc.walk_block) and
236236 [`walk_inline`](#pandoc.walk_inline) allow filters to be applied
@@ -269,7 +269,7 @@ colon syntax (`mystring:uc_upper()`).
269269# Examples
270270
271271The following filters are presented as examples. A repository of
272−useful lua filters (which may also serve as good examples) is
272+useful Lua filters (which may also serve as good examples) is
273273available at <https://github.com/pandoc/lua-filters>.
274274
275275## Macro substitution
@@ -2478,7 +2478,7 @@ Parameters:
24782478: the block element
24792479
24802480`filter`:
2481−: a lua filter (table of functions) to be applied within the
2481+: a Lua filter (table of functions) to be applied within the
24822482 block element
24832483
24842484Returns: the transformed block element
@@ -2495,7 +2495,7 @@ Parameters:
24952495: the inline element
24962496
24972497`filter`:
2498−: a lua filter (table of functions) to be applied within the
2498+: a Lua filter (table of functions) to be applied within the
24992499 inline element
25002500
25012501Returns: the transformed inline element