kit-docs icon indicating copy to clipboard operation
kit-docs copied to clipboard

Can't use curly brackets in markdown content

Open kling90 opened this issue 2 years ago • 1 comments

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.

kling90 avatar Jun 30 '22 07:06 kling90

Putting the curly brackets inside backticks worked 🤦

`{}`

But the HTML entities should probably still stay as they are if used?

kling90 avatar Jul 01 '22 05:07 kling90