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

🐛 BUG: Braces are displayed when using HTML comments in Markdown code fences. #3460

Closed
1 task
ota-meshi opened this issue May 27, 2022 · 1 comment · Fixed by #3638
Closed
1 task

🐛 BUG: Braces are displayed when using HTML comments in Markdown code fences. #3460

ota-meshi opened this issue May 27, 2022 · 1 comment · Fixed by #3638
Labels
- P4: important Violate documented behavior or significantly impacts performance (priority)

Comments

@ota-meshi
Copy link

What version of astro are you using?

1.0.0-beta.35

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm

What operating system are you using?

Mac

Describe the Bug

When you see the following markdown code fence:

```astro
---
// Component Script (JavaScript)
---
<!-- Component Template (HTML + JS Expressions) -->
```

Unwanted curly braces are displayed, as shown below:

---
// Component Script (JavaScript)
---
{/*<!-- Component Template (HTML + JS Expressions) -->*/}

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-j2bchk?file=src%2Fpages%2Fen%2Fintroduction.md&on=stackblitz

Participation

  • I am willing to submit a pull request for this issue.
@natemoo-re natemoo-re added - P4: important Violate documented behavior or significantly impacts performance (priority) s2-medium labels May 27, 2022
@natemoo-re
Copy link
Member

Thanks for opening an issue! I know exactly where this was introduced, but fixing it might be a bit of a chore. I'll try to come up with a quick solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P4: important Violate documented behavior or significantly impacts performance (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants