-
I'm trying to write a custom writer for Perl's Pod documentation format with the help of A Pod file should start with a "paragraph" declaring the encoding of the file, in this case always =encoding UTF-8 otherwise Latin-1 will be assumed for historical reasons. I suppose this should be added in a function called |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The function should be Here's why I think so: $ pandoc lua
Lua 5.4.6 Copyright (C) 1994-2023 Lua.org, PUC-Rio
Embedded in pandoc 3.1.13
> pandoc.scaffolding.Writer
table: 0x7fcf5a90d240
> for k,v in pairs(pandoc.scaffolding.Writer) do print(k) end
Block
Inline
Blocks
Pandoc
Inlines
> pandoc.scaffolding.Writer.Pandoc
function: 0x7fcf5a8f7680 For the return value, the documentation says:
|
Beta Was this translation helpful? Give feedback.
Exactly. The default implementation for
Pandoc
basically does the equivalent toSo something like this should work: