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 <jgm-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 <info-ckBjHRpK5r9MPTj2movljOTW4wlIGRCZ@public.gmane.org> 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-discuss+unsubscribe@googlegroups.com.
> 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-discuss+unsubscribe@googlegroups.com.
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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhBEViWZsLRRtAr78yn3Q3fSZswg85vut21vkrpfsvszXQ%40mail.gmail.com.