Skip to content

(design) Good and Bad examples are not stylized #948

@tristantheb

Description

@tristantheb

What information was incorrect, unhelpful, or incomplete?

Example blocks using plain text mode do not apply “green/red” formatting when using associated keywords.

Image

What did you expect to see?

That syntax highlighting for code sample blocks is once again functional for blocks in text mode.

Do you have any supporting links, references, or citations?

Page used for example: https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Scripting/Variables#an_aside_on_variable_naming_rules

Do you have anything more you want to share?

The possible cause is that .example-bad:is(.code-example pre) is not detected on this type of block because there is no .code-example encapsulating the pre element.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueA good issue for newcomers to get started with.p1We will address this soon and will provide capacity from our team for it in the next few releases.

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions