Skip to content

Proper way to add "alert"/"note"/"hint"/"warning"/... boxes? #1292

Open
@mgeier

Description

@mgeier

I apologize if this has been discussed before, but I didn't find anything about it in the issues ...

I often see colored boxes in Markdown cells, e.g. in docs/source/examples/Notebook/Notebook Basics.ipynb (rendered by Github/nbviewer).

Those are typically created with raw HTML <div>s like this:

<div class="alert alert-success">
Blah blah blah
</div>

This looks nice and all, but

  1. It's kinda tedious to type
  2. The colored boxes (but not their content) get lost in translation to LaTeX

Is there a better way to create those boxes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions