kit-docs
kit-docs copied to clipboard
Can't use curly brackets in markdown content
I can't seem to use curly brackets in markdown content. Since every mardown file is a Svelte component the usage of curly brackets directly works as expected, but the HTML entites should probably stay as they are?
Markdown:
# Test curly brackets
{} {} {}
Error:
C:/dev/kit-docs-test/src/routes/docs/[...1]test.md:19:4 Unexpected token
17 |
18 | <h1>Test curly brackets</h1>
19 | <p>{} {} {}</p>
^
Trying to migrate some API documentation and needed to symbolise an empty object.
Putting the curly brackets inside backticks worked 🤦
`{}`
But the HTML entities should probably still stay as they are if used?