public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Splitting YAML header values into sub values based on a seperator value
@ 2022-06-19  8:21 Abhishek Ulayil
       [not found] ` <a7183c8f-540b-4a9d-bb0a-79872f6f576an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Abhishek Ulayil @ 2022-06-19  8:21 UTC (permalink / raw)
  To: pandoc-discuss


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

I am writing a custom template for converting markdown into R-markdown so I 
can reorder the metadata as per the template. But certain YAML header 
variables contain more information and I would like to split it into 
individual values to place it in different locations.

For example in a markdown file:
---
address:
- |
 person-1-name\
 some university\
 address\
- |
  person-2-name\
  some university\
  address\
author:
  - person-1-name and person-2-name
title: "sample title"
---
body of the markdown file.

here I would like to break the individual address YAML value accessible in 
my template as $address$ into more atomic information bits like 
$address.name$,$address.university$ and $address.postal-address$ 

Is there any way I can break the template variables in the above manner 
programatically..

-- 
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/a7183c8f-540b-4a9d-bb0a-79872f6f576an%40googlegroups.com.

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

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

end of thread, other threads:[~2022-06-21 16:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-19  8:21 Splitting YAML header values into sub values based on a seperator value Abhishek Ulayil
     [not found] ` <a7183c8f-540b-4a9d-bb0a-79872f6f576an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-21  8:45   ` William Lupton
     [not found]     ` <CAEe_xxhXrDZbO4T6eoMY9EqD-4mtRCCoZZs7Zvuf-GHrbWm=bA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-06-21 15:02       ` William Lupton
     [not found]         ` <CAEe_xxj1UapJuioZL=RdakUkjZWRf6WBL=XBg1_ABCCAxe2eCw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-06-21 16:46           ` Abhishek Ulayil

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).