Log in Sign up

Multi-line YAML front matter

Does Blot support multi-line values for YAML frontmatter? no matter what format I try, whenever I call it via a template, it seems to break the page layout, even if the YAML is valid.

Conversely, if i switch to Blot style metadata, everything works as expected. To illustrate, this Blot style metadata works fine:

longtext: this
is
a
multi
line

but this YAML Frontmatter does not:

---
longtext: |-
  here
  is
  a
  multi
  line
---

the YAML metadata is rendered as:

here

is a multi line –>

and the raw HTML is:

<p>here</p>

          is
a
multi
line
–&gt;

i also can't seem to figure out what is causing the –> to be rendered.

so it seems like the newline characters are being rendered, but not wrapped in <p> tags (as i would expect, and how the Blot style metadata seems to handle it.


3 months ago, 0 replies   Edit question

No replies yet