A simple plugin that converts Obsidian style callouts and converts them into mkdocs supported 'admonitions' (a.k.a. callouts).
Project description
mkdocs-callouts
A simple plugin that converts Obsidian style callouts and converts them into mkdocs supported 'admonitions' (a.k.a. callouts).
Setup
Install the plugin using pip:
pip install mkdocs-callouts
Activate the plugin in mkdocs.yml
, note that the markdown_extensions nl2br
, admonition
and pymdownx.details
are required for this plugin to render correctly:
markdown_extensions:
- nl2br
- admonition
- pymdownx.details
plugins:
- search
- callouts
Note: If you have no
plugins
entry in your config file yet, you'll likely also want to add thesearch
plugin. MkDocs enables it by default if there is noplugins
entry set, but now you have to enable it explicitly.
Usage
mkdocs-callouts converts the following:
> [!INFO] Title
> An information callout from Obsidian
> inspired by the syntax from the Microsoft Docs
and turns it into:
!!! info "Title"
An admonition block for MkDocs.
Allowing you to edit your notes
with confidence using Obsidian.
Foldable blocks are also supported. (> [!INFO]- Foldable closed by default
, > [!INFO]+ Foldable open by default
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mkdocs-callouts-1.4.0.tar.gz
.
File metadata
- Download URL: mkdocs-callouts-1.4.0.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa3f6762038e6907a45b9be62f33e1262988450028adc3a49c046462508715ca |
|
MD5 | e5864b56f4922fd734bb776ae9be6c06 |
|
BLAKE2b-256 | 10072e4064b6342a612eba18c0aab2870b5479e7f1f821b020435e325907f9b7 |
File details
Details for the file mkdocs_callouts-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: mkdocs_callouts-1.4.0-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e072d37e8af1f06fdbeb281b67429d9eba210e597e1227f1045877ffc5279b4f |
|
MD5 | 031c2547c805ccf98837dc85af37c489 |
|
BLAKE2b-256 | 94bb0091db0b72878a5fce4a210dfa18081684f81a27d3c600d564207bcad2e7 |