24ef672132
A single `read` function parsing pandoc-supported formats is added to the module. This is simpler and more convenient than the previous method of exposing all reader functions individually.
12 lines
222 B
Lua
12 lines
222 B
Lua
return {
|
|
{
|
|
RawBlock = function (elem)
|
|
if elem.format == "markdown" then
|
|
local pd = pandoc.read(elem.text, "markdown")
|
|
return pd.blocks[1]
|
|
else
|
|
return elem
|
|
end
|
|
end,
|
|
}
|
|
}
|