Skip to content

Commit

Permalink
fix: always use role=note
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Jun 21, 2023
1 parent b742c15 commit 5549321
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mdit_py_plugins/admon/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def admonition(state: StateBlock, startLine: int, endLine: int, silent: bool) ->
token.block = True
token.attrs = {
"class": " ".join(["admonition", tag, *_extra_classes(markup)]),
"role": tag,
"role": "note",
}
token.meta = {"tag": tag}
token.content = title
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/admon.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Removes extra quotes from the title
...

.
<div class="admonition danger" role="danger">
<div class="admonition danger" role="note">
<p class="admonition-title" role="heading">Don't try this at home</p>
<p>...</p>
</div>
Expand Down

0 comments on commit 5549321

Please sign in to comment.