Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 754 Bytes

heading_attributes.md

File metadata and controls

42 lines (30 loc) · 754 Bytes
layout title
page
Heading Attributes

tags: headings, ids

Headings can be assigned attributes using this syntax at the end of the line containing the heading text:

{#identifier .class .class key=value key=value}

Thus, for example, the following headings will all be assigned the identifier foo:

# My heading {#foo}

## My heading ##    {#foo}

My other heading   {#foo}
----------------

Converter Compatibility

Pandoc | CommonMark (Basic) | kramdown | GitHub Flavored Markdown (GFM)
Yes x Yes x