Open nathanchere opened 3 months ago
Thanks, @nathanchere, for opening the issue. The YAML parser fails to parse the front matter section, and you should see the following error message:
Wrapping the title with quotes is the solution, but the CMS does not automatically do it as it would first need a valid YAML object to parse it.
Describe the bug The presence of a colon in a non-quoted string field causes issues.
To Reproduce An example of frontmatter which breaks the Frontmatter CMS plugin for vscode:
In this case the syntax highlighting shows "title: Introducing:" as the key instead of identifying "Introducing: " as part of the value
Expected behavior Handle it without crashing. It can be worked around by putting double-quotes around the title (which is done automatically if you enter the colon in the FM activity tab instead of directly in the code editor).
Desktop (please complete the following information):
I've reproduced it on the following: