Skip to content

Code blocks should be rendered as <pre><code> instead of just <pre> #751

@berberman

Description

@berberman

IIUC currently Block.toHtml renders .code blocks using only a <pre> container:

| .code content => pure #[{{ <pre> {{ content }} </pre>}}]

This breaks client-side highlighters like Highlight.js and some CSS themes which expect the standard structrue. I think it would be great to reuse some existing highlighters as a catch-all highlighting on the top of define_lexed_text defined languages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions