I'm simply trying to read a markup file (org in this case). I'm able to read its contents but not the metadata. I've tried reading the documentation and looking at a few examples and I'm not sure what I'm doing wrong. The code snippet and file I'm reading are attached below. Here is the output when calling the function:
Right (Pandoc (Meta {unMeta = fromList []}) [Para [Str "\8212",SoftBreak,Str "title:",Space,Str "The",Space,Str "document",Space,Str "title",SoftBreak,Str "author:"],BulletList [[Plain [Str "name:",Space,Str "Author",Space,Str "One",SoftBreak,Str "affiliation:",Space,Str "University",Space,Str "of",Space,Str "Somewhere"]],[Plain [Str "name:",Space,Str "Author",Space,Str "Two",SoftBreak,Str "affiliation:",Space,Str "University",Space,Str "of",Space,Str "Nowhere"]]],Para [Str "\8230"],Header 1 ("",[],[]) [Str "Root"],Header 1 ("",[],[]) [Str "Nav"],BulletList [[Plain [Link ("",[],[]) [Str "posts"] ("posts/
hello-world.org","")]],[Plain [Link ("",[],[]) [Str "stream"] ("
stream.org","")]]],Para [Str "About",Space,Str "me."]])
As you can see the metadata is empty even though there is a yaml metadata block in the source file.
My build depends on pandoc >= 3.1 && < 3.2 and pandoc-types >= 1.23.