Skip to content

use <div role="note"> instead of <blockquote> for admonitions#3027

Open
orangecms wants to merge 1 commit into
rust-lang:masterfrom
orangecms:admonition-semantics
Open

use <div role="note"> instead of <blockquote> for admonitions#3027
orangecms wants to merge 1 commit into
rust-lang:masterfrom
orangecms:admonition-semantics

Conversation

@orangecms

@orangecms orangecms commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

Also, render the 'title' in a <span> instead of a <p>. This is semantically closer to what assistive tooling supports. For reference, see also:

see #3026

Also, render the 'title' in a <span> instead of a <p>.
This is semantically closer to what assistive tooling supports.
For reference, see also:
- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/note_role
- https://www.w3.org/TR/WCAG21/#name-role-value (even has a note)

Signed-off-by: Daniel Maslowski <info@orangecms.org>
@orangecms

Copy link
Copy Markdown
Contributor Author

I also filed this against the underlying parser:
pulldown-cmark/pulldown-cmark#1069

@ehuss

ehuss commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

Seems reasonable. I'm trying to think about this being somewhat of a breaking change since people may have custom styling that would then break. I'll think about it more, but this may need to wait for 0.6.

@rustbot

rustbot commented Feb 23, 2026

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (possibly 0e6c5d0) made this pull request unmergeable. Please resolve the merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: waiting on a review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants