Closed fuggla closed 8 years ago
You've got to set the option yaml_metadata to true.
html, meta = lcmarkconvert(markdown, "html", {yaml_metadata = true})
I forgot to document this -- and have just added something to README.
Maybe it shouldn't even be an option, but it seems nice to have a mode where lcmark works just like cmark.
I see. Thanks for your help.
Hi,
I installed lcmark via luarocks and have been trying to convert markdown to html using
lcmark.convert()
. The function returns yaml data as html and not a table and I can't figure out why. I'm probably doing something wrong here... Any help would be appreciated!Script (Lua 5.2.4)
Output:
test.md content:
It works as expected outside of lua: