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

Special Block font size inconsistent #136

Closed
hungryca-t opened this issue Sep 4, 2024 · 2 comments
Closed

Special Block font size inconsistent #136

hungryca-t opened this issue Sep 4, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@hungryca-t
Copy link

Description
The font size of special block (info, warning, etc.) content is inconsistent across paragraphs. Special blocks correctly display header text using header styling, and they correctly display content text for the first block of content using standard font styling. But subsequent paragraphs in the content section revert to header styling.

Expected behavior
Within special blocks, header text uses header styling while all subsequent text not denoted as a header uses standard font styling, including across paragraphs.

Markdown text, as well as preview screenshot, are provided here.

Markdown

# Test

:::info
# This is a header

This should be normal sized text.

This should be normal sized text.
:::

Here is another example with only one line of info text.

:::info
# This is a header

This should be normal sized text.
:::

:::warning
# Test with warning block

Test with warning block

Test with warning block
:::

specialblock

@redimp redimp added the bug Something isn't working label Sep 4, 2024
@redimp
Copy link
Owner

redimp commented Sep 4, 2024

Hey @hungryca-t, thank you for bringing this up!

Fix will be part of the next release. I'm not so happy with the design of the special blocks, just used the alerrts ofthe halfmoon framework.

Spoiler: Part of the next release will be Alerts in the github style:

> [!NOTE]
> Useful information that users should know, even when skimming content.

> [!TIP]
> Helpful advice for doing things better or more easily.

> [!IMPORTANT]
> Key information users need to know to achieve their goal.

> [!WARNING]
> Urgent info that needs immediate user attention to avoid problems.

> [!CAUTION]
> Advises about risks or negative outcomes of certain actions.

image

Have to make sure the font-sizes are correct in this one ^^

@redimp redimp self-assigned this Sep 10, 2024
@redimp
Copy link
Owner

redimp commented Sep 15, 2024

Released in 2.6.0.

@redimp redimp closed this as completed Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants