Skip to main content

Obsidian callouts for Python-Markdown

Made by Ukrainian License

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)

Source distribution for obsidian-callouts 1.0.1
File Size Uploaded
obsidian_callouts-1.0.1.tar.gz 10.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for obsidian-callouts 1.0.1
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page