Skip to content

It would be nice if no-highlight took precedence #4160

Open
@ndw

Description

I learned about no-highlight in #842

This is a fairly minor issue, but in the interest of orthogonality, it would be nice if no-highlight took precedence over even a supported language. If, for example, Python is included as a supported language:

<pre class="no-highlight language-python">...

Syntax highlights the block using the Python highlighter.

I think something like:

if (block.classList.contains("no-highlight")) {
   return "no-highlight";
}

at the start of blockLanguage on line 95 would do it.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions