Skip to content

Commit 449ee24

Browse files
committed
Add advice re setting the LUA_PATH environment variable
1 parent 6ba64ff commit 449ee24

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ This library provides pandoc-aware functions for dumping and logging lua objects
44

55
# Getting started
66

7-
Put `logging.lua` somewhere where pandoc can access it, e.g., in the same directory as your lua filters. Then try this `simple.lua` filter:
7+
Put `logging.lua` somewhere where your pandoc lua filters can access it. For example, if your lua filters are in `$HOME/.local/share/pandoc/filters` you could put `logging.lua` in the same place and set the [`LUA_PATH`](https://www.lua.org/manual/5.4/manual.html#pdf-package.path) environment variable:
8+
9+
```
10+
export LUA_PATH="$HOME/.local/share/pandoc/filters/?.lua;;"
11+
```
12+
13+
Now try this `simple.lua` filter:
814

915
```lua
1016
local logging = require 'logging'

0 commit comments

Comments
 (0)