Skip to content

How to custom the title of code block like docusaurus? #3746

@xbpk3t

Description

@xbpk3t

Is your feature request related to a problem? Please describe.

I have to add a CodeBlock component like #1027 , When to support built-in title?

Describe the solution you'd like

syntax like:

yaml [prom.yml]

or

yaml title="prom.yml"

in Code blocks | Docusaurus

Describe alternatives you've considered

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions