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

Highlight CodeBlock doc examples are highlighted #7032

Closed
1 of 2 tasks
andrewnicols opened this issue Mar 28, 2022 · 1 comment · Fixed by #7033
Closed
1 of 2 tasks

Highlight CodeBlock doc examples are highlighted #7032

andrewnicols opened this issue Mar 28, 2022 · 1 comment · Fixed by #7033
Labels
documentation The issue is related to the documentation of Docusaurus

Comments

@andrewnicols
Copy link
Contributor

Have you read the Contributing Guidelines on issues?

Description

Regarding https://docusaurus.io/docs/markdown-features/code-blocks#highlighting-with-comments:

The example code section which is meant to show how to use comments to highlight codes is instead parsed and the comments are not shown as a result.

The first codeblock should show the markup used to generate the second codeblock, but those comments are instead parsed and the lines in the example are highlighted.

I can't seem to find a way to escape this comment to make this work as intended.

Self-service

  • I'd be willing to address this documentation request myself.
@andrewnicols andrewnicols added documentation The issue is related to the documentation of Docusaurus status: needs triage This issue has not been triaged by maintainers labels Mar 28, 2022
@Josh-Cena
Copy link
Collaborator

Oh, oops! Thanks for spotting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation The issue is related to the documentation of Docusaurus
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants