diff --git a/mdit_py_plugins/admon/index.py b/mdit_py_plugins/admon/index.py index c908337..9b8c4ed 100644 --- a/mdit_py_plugins/admon/index.py +++ b/mdit_py_plugins/admon/index.py @@ -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 diff --git a/tests/fixtures/admon.md b/tests/fixtures/admon.md index c80d524..56def27 100644 --- a/tests/fixtures/admon.md +++ b/tests/fixtures/admon.md @@ -59,7 +59,7 @@ Removes extra quotes from the title ... . -
+

Don't try this at home

...