diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-12-06 13:04:31 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-12-06 13:04:51 -0800 |
commit | 72075423d08e7cd2052f5325a17d52fc1d7682b3 (patch) | |
tree | 81ef5637e500b95fccd5aa2205e32cfe612a0ff9 | |
parent | 23b2617bf782c68ae9b46d6bb23812dc7081be3e (diff) | |
download | pandoc-72075423d08e7cd2052f5325a17d52fc1d7682b3.tar.gz |
custom-writers.md: use filter to include source of example.
-rw-r--r-- | doc/custom-writers.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/custom-writers.md b/doc/custom-writers.md index b2258a95f..6df603288 100644 --- a/doc/custom-writers.md +++ b/doc/custom-writers.md @@ -34,6 +34,8 @@ can do pandoc --print-default-data-file sample.lua > sample.lua ``` +# A custom HTML writer + `sample.lua` is a full-features HTML writer, with explanatory comments. To use it, just use the path to the custom writer as the writer name: @@ -46,3 +48,5 @@ pandoc -t sample.lua myfile.md writer, so you can design your own custom writer by modifying the functions in `sample.lua` according to your needs. +``` {.lua include="sample.lua"} +``` |