There's also the option to use `>-` instead of `|`. It works almost the
same as `|`, but removes all line breaks (including the final one).
BPJ <mel...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> Or if needed use single quotes around the value to protect punctuation
> marks, noting that to include a single quote in a YAML single-quoted
> string you use two single quotes, as in `'don''t'`.
>
> Den tors 20 jan. 2022 22:42John MacFarlane <j...-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> skrev:
>
> One workaround is to use a Lua filter that
> applies pandoc.utils.stringify to the contents of the
> 'volume' field in metadata.
> Russ <in...@shoesforindustry.net> writes:
> > pandoc 2.17.0.1
> > Reading a multi line YAML front matter and outputing the text now
> gets a
> > text string with html <p> tags.
> >
> > For example
> > ```yaml
> > volume: | Volume 16: A Subtitle ```
> > Should produce:
> > "Volume 16: A Subtitle"
> >
> > But now produces:
> > "<p>Volume 16: A Subtitle</p>"
> >
> > Is there a way to avoid these html tags or is it a bug? I cannot
> say for
> > sure that this has changed in this specific version, but it is
> certainly
> > quite a recent change.
> >
> > --
> > 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/e17cd72d-2900-476c-
> a945-77d9e2e722bcn%40googlegroups.com.
> --
> 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/yh480ksfti2igy.fsf%
> 40johnmacfarlane.net.
>
> --
> 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhBEViWZsLRRtAr78
> yn3Q3fSZswg85vut21vkrpfsvszXQ%40mail.gmail.com.
--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124