Attributes¶
Extension: attr_list
attr_list attaches HTML attributes (classes, IDs, and key/value pairs) to Markdown elements using a { ... } block placed right after the element.
Link Attributes¶
Add attributes like target and title to a link:
Icon Sizing and Alignment¶
Icons accept the .lg / .xl size helpers and the .middle alignment helper:
Custom Heading IDs¶
Override the auto-generated anchor for a heading so you can link to it with a stable URL:
Syntax¶
[text](url){ key=value .class #id } <!-- on a link -->
:icon-name:{ .lg .middle } <!-- on an icon -->
## Heading { #custom-id } <!-- on a heading -->
Separate multiple attributes with spaces: .class sets a CSS class, #id sets an ID, and key=value sets any other HTML attribute.