Skip to main content

Built-in Extras

MdStyled ships with a few preview extensions that work out of the box.

ExtensionWhat it does
mermaidRenders ```mermaid blocks as diagrams
copy-codeAdds copy buttons to code blocks
highlightApplies basic code block styling

Enabling / disabling​

All three are enabled by default. Control them in VS Code settings:

{
"mdstyled.extensions.enabled": ["mermaid", "copy-code", "highlight"]
}

For example, to disable Mermaid rendering but keep copy buttons and highlighting:

{
"mdstyled.extensions.enabled": ["copy-code", "highlight"]
}

Mermaid​

Renders ```mermaid fenced blocks as inline diagrams: flowcharts, sequence, Gantt, pie, class, and more.

Copy code​

Adds a copy button to every code block. The button stays fixed while scrolling horizontally, so it's always reachable.

Highlight​

Applies basic code block styling using theme-appropriate colors.

tip

Templates build on these extras. The interactive templates layer interactive tables, accordions, callouts, and progress bars on top.