Skip to content

Commit 38522b4

Browse files
committed
Add missing "important" class default to Admonitions
1 parent eebdd49 commit 38522b4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/src/markdown/about/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ icon: lucide/scroll-text
88
- **NEW**: Critic: `view` mode has been deprecated. To avoid warnings or future issues, explicitly set `mode` to
99
either `accept` or `reject`. In the future, the new default will be `accept` and the `view` mode will be removed
1010
entirely.
11+
- **FIX**: Block Admonition: `important` should have always been available as a default.
1112

1213
## 10.17.2
1314

pymdownx/blocks/admonition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def __init__(self, *args, **kwargs):
8686

8787
self.config = {
8888
"types": [
89-
['note', 'attention', 'caution', 'danger', 'error', 'tip', 'hint', 'warning'],
89+
['note', 'attention', 'caution', 'danger', 'error', 'tip', 'hint', 'warning', 'important'],
9090
"Generate Admonition block extensions for the given types."
9191
]
9292
}

0 commit comments

Comments
 (0)