Pelican plugin: render Obsidian-style callouts from Markdown blockquotes
Project description
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
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 pelican_obsidian_callouts-1.0.1.tar.gz.
File metadata
- Download URL: pelican_obsidian_callouts-1.0.1.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1483d6b33b126612e8d4147dbf142aece1a7ae9a3cdabb186d23c16eb2379aaf
|
|
| MD5 |
1cddb053955788c4bc5cff90f16d089f
|
|
| BLAKE2b-256 |
e2f478fdc6fda5692e56674310df9b0a37f6b1f0c17281bae11092ee9b6dcb9f
|
Provenance
The following attestation bundles were made for pelican_obsidian_callouts-1.0.1.tar.gz:
Publisher:
publish.yml on tclancy/pelican-obsidian-callouts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pelican_obsidian_callouts-1.0.1.tar.gz -
Subject digest:
1483d6b33b126612e8d4147dbf142aece1a7ae9a3cdabb186d23c16eb2379aaf - Sigstore transparency entry: 1291671499
- Sigstore integration time:
-
Permalink:
tclancy/pelican-obsidian-callouts@ec449a2767f35567c3f1c5bac149b1fd59137f12 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/tclancy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ec449a2767f35567c3f1c5bac149b1fd59137f12 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pelican_obsidian_callouts-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pelican_obsidian_callouts-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a63c03bf7a48e830df88a152cef99be518e856d0171b451e2b259177d850266
|
|
| MD5 |
e20740b00d2814a1cc841ccf599063ba
|
|
| BLAKE2b-256 |
6b9e0b7eb7a2c334619ce44563d6b1ffa3da3e4df91e6a1f957b003dce70b30f
|
Provenance
The following attestation bundles were made for pelican_obsidian_callouts-1.0.1-py3-none-any.whl:
Publisher:
publish.yml on tclancy/pelican-obsidian-callouts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pelican_obsidian_callouts-1.0.1-py3-none-any.whl -
Subject digest:
4a63c03bf7a48e830df88a152cef99be518e856d0171b451e2b259177d850266 - Sigstore transparency entry: 1291671558
- Sigstore integration time:
-
Permalink:
tclancy/pelican-obsidian-callouts@ec449a2767f35567c3f1c5bac149b1fd59137f12 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/tclancy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ec449a2767f35567c3f1c5bac149b1fd59137f12 -
Trigger Event:
push
-
Statement type: