Visitar URL original
Document the use of attr_list with def_list. · Python-Markdown/markdown@819fff9 · GitHub
Skip to content

Commit 819fff9

Browse files
authored
Document the use of attr_list with def_list.
Ref #1123
1 parent 36cdbd3 commit 819fff9

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

‎docs/changelog.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ See the [Contributing Guide](contributing.md) for details.
3232
* Fix quadratic-time regex backtracking in `ReferenceProcessor` when a link
3333
reference definition has no URL, e.g. a line consisting only of `[id]:`
3434
followed by many trailing spaces (#798).
35+
* Document `attr_list` usage for `def_list` (#1123).
3536

3637
## [3.10.3] - 2026-07-30
3738

‎docs/extensions/attr_list.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,23 @@ A setext style header { #setext}
111111
### A hash style header ### { #hash }
112112
```
113113

114+
Similarly, when using with the [Definition List] Extension, an attribute list
115+
must be on the same line as the term.
116+
117+
``` md-render
118+
---
119+
extensions: [attr_list, def_list]
120+
---
121+
Apple { #apple }
122+
: Pomaceous fruit of plants of the genus Malus in
123+
the family Rosaceae.
124+
125+
Orange { #orange }
126+
: The fruit of an evergreen tree of the genus Citrus.
127+
```
128+
129+
[Definition List]: ./definition_lists.md
130+
114131
!!! seealso "See Also"
115132

116133
By default, the [Fenced Code Blocks](./fenced_code_blocks.md#attributes) extension includes limited support for

0 commit comments

Comments
 (0)