Skip to content

[Feature Request] Arbitrary code-fence attributes with data-* prefix #3014

@colelawrence

Description

@colelawrence

I'd like to be able to add arbitrary information on different code blocks by being able to do something like

```rs,data-error="true"
fn wrong_syntax<'a>() {
}
```

This would make for an easy escape hatch to add arbitrary functionality to different code blocks.

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