-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Code Tabs do not allow HMTL comments within code blocks #1260
Comments
I think this is due to our syntax choice for the CodeTabs and can be fixed by changing the syntax. However, we need to think of what syntax to use such that it doesn't overlap with any language syntax. E.g adding DOCUSAURUS in the syntax? |
@fiennyangeln That's a very easy and clean fix. Another fix is to not include those on codeblocks as part of tab. Sometimes I wonder if these kind of feature should've best been left as a markdown parser plugin. Wanna send a PR ? 😄 |
I found a Remarkable plugin that does something similar - https://www.npmjs.com/package/remarkable-codegroup |
I'm not using comments in html but I got the same problem if I put a comment like this:
into a markdown file, docusaurus don't work anymore after this comment, If I remove the comment it works again. It actually bugs if you put an url in a comment, I just removed the link from the comment and it worked! It's actually so weird, sometimes it works with comment and sometimes don't, And if I put two comments in a md file it only hides the first comment... |
🐛 Bug Report
Language-specific Code Tabs creates a new tab for HTML comments within code blocks.
Related to:
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
Expected behavior
Should have
HTML
tab:Actual Behavior
Should have
HTML
tab and not have a tab for the HTML comment:Reproducible Demo
See Unibeautify/website#211 (comment)
The text was updated successfully, but these errors were encountered: