Skip to content

Support multiple classes for fenced code blocks #775

Closed
@nsheff

Description

@nsheff

Right now, fenced code blocks can be assigned a class (which is typically used to define the language). But it is impossible to assign more than one class.

You may want to do this, for example, to distinguish input code blocks from output code blocks in a vignette. Right now, if you try to define multiple classes in a markdown fence block, using {.class1 .class2}, the HTML is not parsed correctly as a code block.

For a use case, see: mkdocs/mkdocs#1720

You may want to say: {.python .inputblock} or {.bash .outputblock} to add a second layer of distinguishing code blocks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmedConfirmed bug report or approved feature request.extensionRelated to one or more of the included extensions.featureFeature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions