Replies: 1 comment 1 reply
-
Symfony's YAML component will return $inputs = [
'',
' ',
"---\n",
'null',
"---\nnull",
'# This is a comment',
]; The YAML spec does seem to indicate that
I agree that Also, while frontmatter is almost always comprised of key-value pairs that can be represented as an array, we don't currently enforce that - any type of valid YAML document, even if it only contains a single scalar value: $inputs = [
'Hello World!', // string
'1', // int
'1.0', // float
'""', // empty string
]; As long as this remains the case then I think Definitely open to additional thoughts here, though! |
Beta Was this translation helpful? Give feedback.
-
8fold/commonmark-fluent-markdown#4
Beta Was this translation helpful? Give feedback.
All reactions