8000 Support alerts, highlighted block-quotes (GitHub-style) · Issue #80 · pmeinhardt/maxdown · GitHub
[go: up one dir, main page]

Skip to content

Support alerts, highlighted block-quotes (GitHub-style) #80

Open

Description

@pmeinhardt

GitHub supports highlighting block-quotes, for example:

Note

Highlights information that users should take into account, even when skimming.

Tip

Optional information to help a user be more successful.

Important

Crucial information necessary for users to succeed.

Warning

Critical content demanding immediate user attention due to potential risks.

Caution

Negative potential consequences of an action.

It would be nice to render these properly.

Reference: https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts

See also wooorm/markdown-rs#168

Activity

  1. pmeinhardt commented on May 10, 2025

    @pmeinhardt
    OwnerAuthor

    Possible approaches:

    1. Use markdown-rs to output AST via to_mdast() and customize HTML output
    2. Try Cloudflare's lol_html crate
    3. Check out Brave's kuchikiki for HTML manipulation
  2. changed the title [-]Support highlighted block-quotes (GitHub-style)[/-] [+]Support alerts, highlighted block-quotes (GitHub-style)[/+] on May 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0