Obsidian callouts for Python-Markdown
This is an extension for Python-Markdown which allows you to use Obsidian-style callouts:
> [!warning]
> Here's a callout block.
> [!tip] Callouts can have custom titles
> Like this one.
It will be rendered kinda like this:
[!WARNING] Here's a callout block.
[!TIP] Callouts can have custom titles Like this one.
For a full reference, please, see the Obsidian's documentation on this.
Usage
Simply enable the extension like this:
import markdown
md = markdown.Markdown(extensions=['obsidian_callouts'])
print(md.convertFile('page.md'))
MkDocs
It can be used with MkDocs as following:
# mkdocs.yml
markdown_extensions:
- obsidian_callouts
It is also installed along with my mkdocs-obsidian-bridge.
Credits
During the implementation of this plugin, I was using the official Python-Markdown as an inspiration and the example.
Release files for obsidian-callouts 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| obsidian_callouts-1.0.1.tar.gz | 10.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| obsidian_callouts-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.9 kB
Release files / obsidian_callouts-1.0.1.tar.gz
| Download URL | obsidian_callouts-1.0.1.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ed5ddb9dbdd2340d845cd5efd412fbfe9011ccd7c2040b27f62d0998b0cef1d
|
|
BLAKE2b-256 checksum How to use checksums |
cb9d2611de6c8ded3bab57fa72558e73d173db6e0458580363dfb9b1e2906d4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 13, 2025.
Transparency logRelease files / obsidian_callouts-1.0.1-py3-none-any.whl
| Download URL | obsidian_callouts-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a373e8be931c2cf574990f57061db5f724755f27aeb3aac23eb7436fde7f819b
|
|
BLAKE2b-256 checksum How to use checksums |
66ec3096a14196b84b1846be8721d12ed60ecb3b1f133f90339160119096ce17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 13, 2025.
Transparency log