Admonition Blocks¶
Uses the Admonition extension.
Todo
find a way to have notes without title but with an icon on a colored background on the left of the text box instead of on the top
a good example is another MkDocs theme that can be found at:
https://yakworks.github.io/mkdocs-material-components/blocks/#examples
Basic usage¶
Todo
Fix text being too low in title line.
General note¶
Note
meow
Seealso
No title & custom title (applies to all blocks)¶
Source Code
I am no one. I have no title.
This is my personal note
This note is unlike most other notes because it has a custom title.
Abstract, Information, Tip¶
Source Code
Abstract
woof
Summary
Tldr
Info
meow…
Todo
Tip
woof
Hint
Important
Success, Failure¶
Success
meow!
Check
Done
Failure
woof… woof.
Fail
Missing
Warning, Danger, Bug¶
Source Code
Warning
woof!
Caution
Attention
Danger
woof! woof!
Error
Bug
woof…
Question, Example, Quote¶
Source Code
Question
meow?
Help
Faq
Example
meow, meow, meow.
Snippet
mw
Error
snippet not displaying the same icon as example
Quote
woof woof, woof, woof.
Cite
Combined usage¶
Collapsible (applies to all blocks)¶
Source Code
Collapsible block
Collapsible content initially hidden
Collapsible block
Collapsible content initially shown
Empty collapsible block, initially collapsed
Empty collapsible block, initially expanded
Nested¶
Source Code
Ancient
“I am Ozymandias, King of Kings.
Egypt
If any want to know how great I am and where I lie,
Nile
let him outdo me in my work.”
With code block as content¶
Source Code
Example
Using the powerful Superfences extension to render code blocks here:
With table as content¶
Source Code
Example
| Center | Left | Right |
|---|---|---|
| Alpha One | B1 | C1 |
| A2 | Beta Two | C2 |
| A3 | B3 | Gamma Three |