Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: mixed case custom callout types are supported #295

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

nathonius
Copy link
Contributor

This has at least been a bug since #252.

Custom admonition types that include uppercase letters do not work with callouts. Callouts are always rendered with a lowercase type, for example:

> [!Exercise] Sharpen your pencil
> My custom callout!

Is rendered in html as:

<div data-callout-metadata="" data-callout-fold="" data-callout="exercise" class="callout"><div class="callout-title">

So unless the custom admonition type is lowercase, the css snippet won't work and the default callout styles are used. This change simply converts the type to lowercase before updating the css snippet.

@valentine195 valentine195 merged commit 628179e into javalent:master Apr 19, 2023
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