key: |-2
This is a string with "quotes"
and multi line, similar to html
<pre>.
Trying to read in some data from a file, and I chose yaml because of it’s multiline support compared to json. It’s possible to use quoted strings and escaped newline, but that defeats the readability benefits of yaml.
I did some more digging, and if hugo is using the go-yaml parser, it does support the “|” multiline raw string format.
I successfully got hugo to parse a raw multiline string at the base level, but not one in a list. I’ll see if I can figure out what’s wrong with the syntax.