A simple MkDocs plugin that converts Obsidian callout blocks to mkdocs supported Admonitions.
Project description
mkdocs-callouts
A simple plugin that converts Obsidian style callouts and turns them into mkdocs supported Admonitions.
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:
markdown_extensions:
- nl2br
- admonition
- pymdownx.details
plugins:
- search
- callouts
Note: If you have no
pluginsentry in your config file yet, you'll likely also want to add thesearchplugin. MkDocs enables it by default if there is nopluginsentry 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocs-callouts-1.1.0.tar.gz.
File metadata
- Download URL: mkdocs-callouts-1.1.0.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43a1d0ba2df938c3160910fb2f0f55c1f36af2eabaa5ebdbe30b9234b0ac8ff7
|
|
| MD5 |
be387c47157e4ed6bdb1670602e7f39e
|
|
| BLAKE2b-256 |
860c326d8e62d7a0f50c75bf7b3595a250efae08405a997a6fbad6f73401b85f
|
File details
Details for the file mkdocs_callouts-1.1.0-py3-none-any.whl.
File metadata
- Download URL: mkdocs_callouts-1.1.0-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4493157d19cd070fc7d524a2456b0a279a202423c39d06318ddc0d2d3d867678
|
|
| MD5 |
7de64bee7d6547e9cc4fa9ef3dbbddf2
|
|
| BLAKE2b-256 |
39ebb41cd8d9a77b0c2b745bad27d39d082c95b56830b2fea37783fc482f1334
|