Skip to content

DISABLE syntax highlighting/coloring for code blocks? #143

@VentoZwerg

Description

@VentoZwerg

Hi all!

The docs say:

Marked: The following extensions are loaded by default:
marked-base-url -> Sets the base url relative to src - this allows nested md files to work.
marked-highlight -> Prepares syntax highlighting via highlight.js.
marked-gfm-heading-id -> Adds Github-styled element ids to headings.
marked-alert -> Adds Github-styled alerts.

For my use case, i would like do DISABLE syntax highlighting/coloring, as I am dealing with legacy hint-free backtick-blocks and the syntax highlighter guesses the language wrong, leading to dandomly colored words inside backtick-enclosed blocks.

Is there an easy way to disable marked-highlight alltogether while keeping all other features?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions