Closed viciouskitten closed 2 years ago
Thanks for the detailed issue report. This is an issue with the yaml parser. We are already planning a fix for this by switching to JSON for structure fields. I'm afraid I cannot offer a good fix for this in the meantime.
I'm closing this for now. We have a ticket connected to this issue in the backlog and we will follow up 🧐
Thank you!
Describe the bug
I am using blocks within a structure. All of the other types of block seem to be working fine but when i use the Markdown block it’s not rendering correctly.
This is how the .yml file is saving my markdown. It seems to be adding quotes around it
documentation: '[{"content":{"text":"# An H1 Header\n## An H2 Header\n### An H3 Header\n#### An H4 Header"},"id":"d99269ab-21a5-4d21-94e7-7e9ff838238b","isHidden":false,"type":"markdown"}]'
If i change it to this in the .yml file it works fine:
documentation: | [{"content":{"text":"# An H1 Header\n## An H2 Header\n### An H3 Header\n#### An H4 Header"},"id":"d99269ab-21a5-4d21-94e7-7e9ff838238b","isHidden":false,"type":"markdown"}]
To Reproduce
Steps to reproduce the behavior:
Expected behavior
For markdown to be rendered correctly in the browser
Screenshots
How the panel looks with the markdown code:
How it looks:
How it should look:
Kirby Version
3.5.7.1
Console output
No errors
Desktop (please complete the following information):