Skip to content

Conversation

@aimileus
Copy link
Contributor

GitHub-style alerts in Markdown are case-insensitive. For example, an inline warning in the style of

> [!warning]
> Body of the warning

GitHub rendering:

Warning

Body of the warning

is supported on GitHub. While Otterwiki detects this as a warning, the [!warning] command is not removed from the rendering of the box, because one regex was not case-insensitive.

Current Otterwiki rendering:

Incorrect rendering of [!warning]

This PR fixes this bug and adds a test that checks whether the command was removed from the rendering.

GitHub-style alerts in Markdown are case-insensitive. For example, an
inline warning in the style of

> [!warning]
> Body of the warning

is supported on GitHub. While Otterwiki detects this as a warning, the
`[!warning]` command is not removed from the rendering of the box,
because one regex was not case-insensitive. This commit fixes this bug
and adds a test that checks whether the command was removed from the
rendering.
@redimp
Copy link
Owner

redimp commented Jan 23, 2026

Looks good to me, thank you @aimileus!

@redimp redimp merged commit feb17fc into redimp:main Jan 23, 2026
@aimileus aimileus deleted the lowercase-alert branch January 23, 2026 21:03
@redimp
Copy link
Owner

redimp commented Feb 1, 2026

Released in v2.17.0.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants