mkdocs-shadcn

  • Home
  • Get started
  • Pages
  • HTML
Extensions
  • Admonitions
  • Attribute Lists
  • Codehilite
  • Codexec
  • Apache ECharts
  • Fenced code
  • Footnotes
  • Hover Card
  • Iconify
  • pymdownx.arithmatex
  • pymdownx.blocks.caption
  • pymdownx.blocks.details
  • pymdownx.blocks.tab
  • pymdownx.progressbar
  • pymdownx.tabbed
  • Table of Contents
Plugins
  • Autonumber
  • Excalidraw
  • Mike
  • Mkdocstrings
Contributing
  • Contributing
  • Setup
  • Internationalization

Attribute Lists

Previous Next

Customize HTML attributes

Reference

The attr_list extension is a feature of Python-Markdown that allows you to add custom attributes to HTML elements generated from Markdown.

Configuration

# mkdocs.yml

markdown_extensions:
  - attr_list

Syntax

The theme may provide some pre-computed classes. The attr_list extension (with extra) allows to customize the attribute of the output html. Here is a example with the reference class.

[Reference](https://python-markdown.github.io/extensions/attr_list/){: class="reference" }

Reference

Admonitions Codehilite
Menu
Home Get started Pages HTML
Extensions
Admonitions Attribute Lists Codehilite Codexec Apache ECharts Fenced code Footnotes Hover Card Iconify pymdownx.arithmatex pymdownx.blocks.caption pymdownx.blocks.details pymdownx.blocks.tab pymdownx.progressbar pymdownx.tabbed Table of Contents
Plugins
Autonumber Excalidraw Mike Mkdocstrings
Contributing
Contributing Setup Internationalization

On This Page

Configuration Syntax
Built by Alban Siffer — shadcn theme provided by @asiffer