* Colon in title in YAML header block @ 2017-09-20 16:35 R (Chandra) Chandrasekhar [not found] ` <ffc43c46-a1a5-cb39-b103-cc0a8dddcb19-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: R (Chandra) Chandrasekhar @ 2017-09-20 16:35 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Is there any way to include a title with a colon in a YAML header block like so: --- title: This title: has a colon --- Is there a way of escaping the colon, or is this an absolute restriction, implying that titles with colons have to incorporated by other means? Chandra ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <ffc43c46-a1a5-cb39-b103-cc0a8dddcb19-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: Colon in title in YAML header block [not found] ` <ffc43c46-a1a5-cb39-b103-cc0a8dddcb19-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2017-09-20 16:41 ` Gwern Branwen [not found] ` <CAMwO0gy5r5TA_PDEzYZLW7yHU2kYOqPdHWGWHE8oY3ZzAWdnSw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Gwern Branwen @ 2017-09-20 16:41 UTC (permalink / raw) To: pandoc-discuss Don't you quote it like any other string literal? --- title: "This title: has a colon" ---- That's always seemed to fix escaping problems in my Hakyll files' metadata. -- gwern https://www.gwern.net ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CAMwO0gy5r5TA_PDEzYZLW7yHU2kYOqPdHWGWHE8oY3ZzAWdnSw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Colon in title in YAML header block [not found] ` <CAMwO0gy5r5TA_PDEzYZLW7yHU2kYOqPdHWGWHE8oY3ZzAWdnSw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2017-09-20 16:51 ` R (Chandra) Chandrasekhar [not found] ` <16f23044-d51d-cb0d-fb5e-63f11df2ed5a-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: R (Chandra) Chandrasekhar @ 2017-09-20 16:51 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw, Gwern Branwen Thank you. Both single and double quotes work. I do not know YAML well and think that I had been overly fixated on backslash escaping to consider alternatives. Chandra On 20/09/17 22:11, Gwern Branwen wrote: > Don't you quote it like any other string literal? > > --- > title: "This title: has a colon" > ---- > > That's always seemed to fix escaping problems in my Hakyll files' metadata. > ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <16f23044-d51d-cb0d-fb5e-63f11df2ed5a-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: Colon in title in YAML header block [not found] ` <16f23044-d51d-cb0d-fb5e-63f11df2ed5a-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2017-09-20 20:13 ` BP Jonsson [not found] ` <CAFC_yuRBc0CvG8hgV0z+HZzwmRcWXjC7KrL1Rtvj1xyY=0-OUw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: BP Jonsson @ 2017-09-20 20:13 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 2032 bytes --] The Wikipedia page on YAML contains very good descriptions of the syntax, both terse listing of syntax rules and more explanatory. https://en.m.wikipedia.org/wiki/YAML Note that some of the more advanced features don't make sense in Pandoc metadata and/or are not supported by the parser Pandoc uses. /bpj Den 20 sep 2017 18:51 skrev "R (Chandra) Chandrasekhar" <chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org >: > Thank you. Both single and double quotes work. > > I do not know YAML well and think that I had been overly fixated on > backslash escaping to consider alternatives. > > Chandra > > On 20/09/17 22:11, Gwern Branwen wrote: > >> Don't you quote it like any other string literal? >> >> --- >> title: "This title: has a colon" >> ---- >> >> That's always seemed to fix escaping problems in my Hakyll files' >> metadata. >> >> > -- > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/ms > gid/pandoc-discuss/16f23044-d51d-cb0d-fb5e-63f11df2ed5a%40gmail.com. > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAFC_yuRBc0CvG8hgV0z%2BHZzwmRcWXjC7KrL1Rtvj1xyY%3D0-OUw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: Type: text/html, Size: 3546 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CAFC_yuRBc0CvG8hgV0z+HZzwmRcWXjC7KrL1Rtvj1xyY=0-OUw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Colon in title in YAML header block [not found] ` <CAFC_yuRBc0CvG8hgV0z+HZzwmRcWXjC7KrL1Rtvj1xyY=0-OUw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2017-09-21 3:44 ` R (Chandra) Chandrasekhar 0 siblings, 0 replies; 5+ messages in thread From: R (Chandra) Chandrasekhar @ 2017-09-21 3:44 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw, BP Jonsson Thank you very much. I found that very helpful. Chandra On 21/09/17 01:43, BP Jonsson wrote: > The Wikipedia page on YAML contains very good descriptions of the > syntax, both terse listing of syntax rules and more explanatory. > > https://en.m.wikipedia.org/wiki/YAML > > Note that some of the more advanced features don't make sense in Pandoc > metadata and/or are not supported by the parser Pandoc uses. > > /bpj > > Den 20 sep 2017 18:51 skrev "R (Chandra) Chandrasekhar" > <chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <mailto:chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>>: > > Thank you. Both single and double quotes work. > > I do not know YAML well and think that I had been overly fixated on > backslash escaping to consider alternatives. > > Chandra > > On 20/09/17 22:11, Gwern Branwen wrote: > > Don't you quote it like any other string literal? > > --- > title: "This title: has a colon" > ---- > > That's always seemed to fix escaping problems in my Hakyll > files' metadata. > > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > <mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. > To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > <mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/16f23044-d51d-cb0d-fb5e-63f11df2ed5a%40gmail.com > <https://groups.google.com/d/msgid/pandoc-discuss/16f23044-d51d-cb0d-fb5e-63f11df2ed5a%40gmail.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > <mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. > To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > <mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/CAFC_yuRBc0CvG8hgV0z%2BHZzwmRcWXjC7KrL1Rtvj1xyY%3D0-OUw%40mail.gmail.com > <https://groups.google.com/d/msgid/pandoc-discuss/CAFC_yuRBc0CvG8hgV0z%2BHZzwmRcWXjC7KrL1Rtvj1xyY%3D0-OUw%40mail.gmail.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/03493574-ce09-21c2-b811-a8edd9454f57%40gmail.com. For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-09-21 3:44 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2017-09-20 16:35 Colon in title in YAML header block R (Chandra) Chandrasekhar [not found] ` <ffc43c46-a1a5-cb39-b103-cc0a8dddcb19-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2017-09-20 16:41 ` Gwern Branwen [not found] ` <CAMwO0gy5r5TA_PDEzYZLW7yHU2kYOqPdHWGWHE8oY3ZzAWdnSw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2017-09-20 16:51 ` R (Chandra) Chandrasekhar [not found] ` <16f23044-d51d-cb0d-fb5e-63f11df2ed5a-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2017-09-20 20:13 ` BP Jonsson [not found] ` <CAFC_yuRBc0CvG8hgV0z+HZzwmRcWXjC7KrL1Rtvj1xyY=0-OUw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2017-09-21 3:44 ` R (Chandra) Chandrasekhar
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).