Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use curly brackets in markdown content #42

Open
kling90 opened this issue Jun 30, 2022 · 1 comment
Open

Can't use curly brackets in markdown content #42

kling90 opened this issue Jun 30, 2022 · 1 comment

Comments

@kling90
Copy link

kling90 commented Jun 30, 2022

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
Copy link
Author

kling90 commented Jul 1, 2022

Putting the curly brackets inside backticks worked 🤦

`{}`

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant