Skip to main content

pelican-obsidian-callouts

A Pelican plugin that renders Obsidian-style callouts from standard Markdown blockquotes.

Installation

pip install pelican-obsidian-callouts

Then add it to your pelicanconf.py:

PLUGINS = ["pelican.plugins.obsidian_callouts"]

Usage

Write callouts in your Markdown content using Obsidian syntax:

> [!note]
> This is a note.

> [!warning] Watch out!
> Something to be careful about.

> [!tip]+
> Foldable callout, expanded by default.

> [!danger]-
> Foldable callout, collapsed by default.

Supported types

note, tip, important, warning, caution, abstract, info, todo, success, question, failure, danger, bug, example, quote

Unknown types are left as plain blockquotes.

Foldable callouts

Append + (expanded by default) or - (collapsed by default) after the callout type. A small inline <script> block is injected once per page to wire the click handler — no external JS dependency.

HTML output

<div class="pelican-callout pelican-callout-note">
  <div class="pelican-callout-title">
    <img src="..." class="pelican-callout-icon" alt="note" width="18" height="18">
    Note
  </div>
  <div class="pelican-callout-body">
    <p>Body text here.</p>
  </div>
</div>

CSS classes

Class Purpose
.pelican-callout Outermost container
.pelican-callout-[type] e.g. .pelican-callout-warning
.pelican-callout-title Title row (icon + text)
.pelican-callout-icon Lucide icon <img>
.pelican-callout-body Body content
.pelican-callout-foldable Added when callout is foldable
.pelican-callout-expanded Foldable callout, currently open
.pelican-callout-collapsed Foldable callout, currently closed

Icons come from lucide-static via unpkg CDN.

Development

git clone https://github.com/tclancy/pelican-obsidian-callouts
cd pelican-obsidian-callouts
uv sync --all-groups
uv run pytest

License

MIT

Metadata

Release files for pelican-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 pelican-obsidian-callouts 1.0.1
File Size Uploaded
pelican_obsidian_callouts-1.0.1.tar.gz 9.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pelican-obsidian-callouts 1.0.1
File Interpreter ABI Platform
pelican_obsidian_callouts-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.4 kB

Release files / pelican_obsidian_callouts-1.0.1.tar.gz

Download URL pelican_obsidian_callouts-1.0.1.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1483d6b33b126612e8d4147dbf142aece1a7ae9a3cdabb186d23c16eb2379aaf
BLAKE2b-256 checksum
How to use checksums
e2f478fdc6fda5692e56674310df9b0a37f6b1f0c17281bae11092ee9b6dcb9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 14, 2026.

Transparency log

Release files / pelican_obsidian_callouts-1.0.1-py3-none-any.whl

Download URL pelican_obsidian_callouts-1.0.1-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a63c03bf7a48e830df88a152cef99be518e856d0171b451e2b259177d850266
BLAKE2b-256 checksum
How to use checksums
6b9e0b7eb7a2c334619ce44563d6b1ffa3da3e4df91e6a1f957b003dce70b30f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

0.1.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