Skip to content

Highlight CodeBlock doc examples are highlighted #7032

Description

@andrewnicols

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationThe issue is related to the documentation of Docusaurus

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions