pandoc / lua-filters

A collection of lua filters for pandoc
MIT License
600 stars 165 forks source link

Scholarly Metadata Lua - unexpected symbol #246

Closed trickard1000 closed 2 years ago

trickard1000 commented 2 years ago

Hello.

My apologies if this is not the right place to locate such a query. I am trying to run scholarly metadata lua along with author info blocks to render a PDF from MD with a YAML frontmatter.

This was my input:

This works without the filters to make a PDF. With the filters, I get:

My YAML, in case of relevance (I am noob):

title: "Dam the River: Ontological exclusion in global and Brazilian Integrated Water Resource Management" author:

My thanks for any pointers, Thomas

tarleb commented 2 years ago

The most likely cause is that the HTML was stored in the .lua file. That can happen if one clicks Save link on the file in the GitHub repo. Try to replace the Lua files with these instead: https://raw.githubusercontent.com/pandoc/lua-filters/master/scholarly-metadata/scholarly-metadata.lua https://raw.githubusercontent.com/pandoc/lua-filters/master/author-info-blocks/author-info-blocks.lua