Skip to content

Commit b141297

Browse files
committed
Update documentation for heading attributes
1 parent 0cb977e commit b141297

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

guide/src/format/markdown.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ To enable it, see the [`output.html.curly-quotes`] config option.
221221
[task list extension]: https://github.github.com/gfm/#task-list-items-extension-
222222
[`output.html.curly-quotes`]: configuration/renderers.md#html-renderer-options
223223

224-
### Heading attributes { #headingattributes .class1 .class2 }
224+
### Heading attributes
225225

226226
Headings can have a custom HTML ID and classes. This let's you maintain the same ID even if you change the heading's text, it also let's you add multiple classes in the heading.
227227

@@ -231,3 +231,5 @@ Example:
231231
```
232232

233233
This makes the level 1 heading with the content `Example heading`, ID `first`, and classes `class1` and `class2`. Note that the attributes should be space-separated.
234+
235+
More information can be found in the [heading attrs spec page](https://github.com/raphlinus/pulldown-cmark/blob/master/specs/heading_attrs.txt).

0 commit comments

Comments
 (0)