Skip to content

Commit 5549321

Browse files
committed
fix: always use role=note
1 parent b742c15 commit 5549321

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mdit_py_plugins/admon/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def admonition(state: StateBlock, startLine: int, endLine: int, silent: bool) ->
132132
token.block = True
133133
token.attrs = {
134134
"class": " ".join(["admonition", tag, *_extra_classes(markup)]),
135-
"role": tag,
135+
"role": "note",
136136
}
137137
token.meta = {"tag": tag}
138138
token.content = title

tests/fixtures/admon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Removes extra quotes from the title
5959
...
6060

6161
.
62-
<div class="admonition danger" role="danger">
62+
<div class="admonition danger" role="note">
6363
<p class="admonition-title" role="heading">Don't try this at home</p>
6464
<p>...</p>
6565
</div>

0 commit comments

Comments
 (0)