Skip to content

Add fenced container extension #780

@P-SiZK

Description

@P-SiZK

Would it be possible to add a fenced container extension?
This would be a useful syntax for custom extensions, as discussed in the Generic directives/plugins syntax proposal.
The simplest form mirrors fenced code blocks, using colons instead of backticks:

:::foo bar
Lorem ipsum
:::

The HTML output below is one possible rendering.

<div class="foo bar">
<p>Lorem ipsum</p>
</div>

This syntax is already used in tools like Docusaurus and VuePress.
If this seems like a reasonable addition, I'd be happy to open a pull request.

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