2017-04-02 17:21:22 +02:00
|
|
|
return {
|
|
|
|
{
|
2017-04-15 21:40:48 +02:00
|
|
|
RawBlock = function (elem)
|
|
|
|
if elem.format == "markdown" then
|
2017-04-17 11:54:42 +02:00
|
|
|
local pd = pandoc.read(elem.text, "markdown")
|
|
|
|
return pd.blocks[1]
|
2017-04-02 17:21:22 +02:00
|
|
|
else
|
2017-04-15 21:40:48 +02:00
|
|
|
return elem
|
2017-04-02 17:21:22 +02:00
|
|
|
end
|
|
|
|
end,
|
|
|
|
}
|
|
|
|
}
|