The new Properties docs state that properties can be defined using JSON, however, some inconsistencies in the display of JSON-defined properties (arrays being rendered with their enclosing brackets) and the conversion to YAML seems like an unintended bug of the new properties core plugin. Would be great if this could get fixed, as I’m sure others like myself use JSON syntax for data validation/compatibility or nested data structures.
Many thanks for the awesome app and community!
Steps to reproduce
- Define file properties using JSON syntax in Source mode, e.g.
{
"tags": "journal",
"publish": false
}
-
Switch to Live Preview or Reading mode.
-
Edit the value of a property and save.
-
Switch back to Source mode.
Did you follow the troubleshooting guide?
Y
Expected result
The frontmatter should be updated with the modification, but remain in JSON syntax.
Actual result
The frontmatter is converted to YAML syntax.