public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Org mode AUTHOR and KEYWORDS parsing seems instinctively "wrong"
@ 2021-05-13 11:30 Garry Cairns
       [not found] ` <57d2396b-e1e3-4096-9cd7-408f615a6839n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Garry Cairns @ 2021-05-13 11:30 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1917 bytes --]

tl;dr
I'd expect KEYWORDS and AUTHOR to be parsed as MetaList types. But it seems 
they are individual strings/MetaInlines. Am I just misunderstanding the 
intent?

Background
I've used Slick as a static site generator for a little while 
(https://ilikewhenitworks.gitlab.io/). I don't post very often, and when I 
tried to write a post recently a rebuild of the code showed it no longer 
worked. I should be able to fix my personal issue by downgrading versions, 
but the root of the problem seems generally applicable. Given an org-mode 
file with headers:

#+TITLE: Org Mode in Hakyll
#+AUTHOR: Garry Cairns, Someone Else
#+DATE: 2019-03-17
#+KEYWORDS: emacs, haskell
#+STARTUP: showall

I'd expect KEYWORDS and AUTHOR to be parsed as MetaList types. But it seems 
they are individual strings both from how my static site builder now fails 
with an expected Array got String error, and from the following output:

[nix-shell:~/code/ILikeWhenItWorks]$ pandoc -s -t native 
posts/2019-03-17-org-test.org 
Pandoc (Meta {unMeta = fromList [("author",MetaInlines [Str 
"Garry",Space,Str "Cairns,",Space,Str "Someone",Space,Str 
"Else"]),("date",MetaInlines [Str "2019-03-17"]),("keywords",MetaInlines 
[Str "emacs,",Space,Str "haskell"]),("title",MetaInlines [Str 
"Org",Space,Str "Mode",Space,Str "in",Space,Str "Hakyll"])]})

This is with

[nix-shell:~/code/ILikeWhenItWorks]$ pandoc --version
pandoc 2.10.1
Compiled with pandoc-types 1.21, texmath 0.12.0.2, skylighting 0.8.5

Am I misunderstanding here?

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/57d2396b-e1e3-4096-9cd7-408f615a6839n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 2439 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-13 12:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 11:30 Org mode AUTHOR and KEYWORDS parsing seems instinctively "wrong" Garry Cairns
     [not found] ` <57d2396b-e1e3-4096-9cd7-408f615a6839n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-05-13 12:30   ` Albert Krewinkel
     [not found]     ` <87v97myfwk.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2021-05-13 12:56       ` Garry Cairns

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).