Mara19 downloadsPublish your notes to Leaflet (leaflet.pub), the AT Protocol blogging platform.
Publish your Obsidian notes to Leaflet, straight to your AT Protocol repository (PDS). Works on desktop and mobile.
Documents are written as site.standard.document records with Leaflet content (pub.leaflet.content), exactly like the posts written in the Leaflet editor, so they show up in your publication, in the Leaflet reader and in any standard.site compatible app.
alice.bsky.social, @alice.bsky.social or a bsky.app profile link also work), your DID or your email, and select the app password (it is kept in Obsidian's secret storage, not in data.json).If your account is not hosted on Bluesky, the PDS is resolved from your handle. You can also set it manually (https:// and a trailing /xrpc are optional). An email login goes through bsky.social unless a PDS is set.
The other settings are grouped in sub-pages: Publication (default publication and post preferences), Conversion (how Markdown is converted) and Properties (note properties read and written by the plugin).
| Command | Description |
|---|---|
| Publish all marked notes | Publish or update every note with leaflet_publish: true, after confirmation. |
| Publish folder to Leaflet / Publish N notes to Leaflet | Right-click a folder, or several selected files, to publish all their notes after confirmation (optional, see When publishing in the settings). Notes with leaflet_publish: false and Excalidraw drawings are skipped; with Only publish marked notes, only marked notes are kept. |
| Publish current note | Create or update the Leaflet post of the note. Also available in the ribbon and in the right-click menus of the file and of the editor (hidden for notes with leaflet_publish: false). |
| Publish current note to… | Choose the publication (or your personal page) before publishing. |
| Retrieve the Leaflet link of current note | Restore leaflet_uri and leaflet_url of a note that lost them, without publishing it. |
| Delete current note from Leaflet | Delete the record from your PDS. The note is kept. |
| Copy Leaflet link / Open published note in browser | Use the URL saved in the note. |
| Manage Leaflet posts (also in the ribbon) | Open a view listing every post of your account, including posts without a note (written elsewhere or whose note was deleted). Search, filter by publication or by posts without note, open the note or the post, publish a note again, publish the selection or the marked notes, delete one or several posts. Relink notes links posts without note to their notes (by key, then by title when a single note matches); a post can also be linked to a chosen note. The list follows publications and deletions made elsewhere. |
| Refresh publications | Reload the publications of your account. |
On desktop, the progress is shown in the status bar; on mobile, in a notice.
After the first publication, the record URI (leaflet_uri) and the URL (leaflet_url) are saved in the note properties. Publishing again updates the same post (its publication date and Bluesky post are kept).
If a note lost its properties (sync issue, failed write…), publishing it again does not create a duplicate nor fail: the plugin looks for its post at the key it should use (reserved address or slug), then by title when a single post matches, and updates it. A post already linked to another note of the vault is never taken.
When a published note is deleted from the vault, the plugin asks whether to delete its post too (or always deletes it, or keeps it: Settings → Deleted notes). Several notes deleted at once (a folder) are asked about together.
A note can be published to several publications, with one post on each:
list them in leaflet_publication:
leaflet_publication:
- My garden
- Work blog
or give a publication its own publish property (Settings → Publication → Publish property per publication, e.g. publish_work): notes where it is true are published there, and count as marked for Publish all marked notes.
Both can be combined. With several posts, leaflet_uri and leaflet_url become lists (in the same order). When the slug is already used by the post on another publication, the next one gets <slug>-<publication name>. Unpublishing a note deletes all its posts; deleting one of them from the posts manager keeps the others.
Links to another note point to its published post. When the linked note is marked with leaflet_publish: true but not published yet, its future address is reserved: only leaflet_url is saved in its properties (leaflet_uri is written by the publication itself), so the link works as soon as that note is published. The commands that need a published post (copy, open, delete) are not offered on a reserved note. Links to unmarked notes become plain text.
| Property | Default key | Usage |
|---|---|---|
| Publish | leaflet_publish |
true marks the note for Publish all marked notes, false blocks any publishing. With Only publish marked notes, true is required. |
| Title | title |
Falls back to the first # heading (removed from the body), then to the file name. |
| Description | description |
Post subtitle. |
| Tags | tags |
Leading # are removed. |
| Cover image | cover |
Vault path, [[wikilink]] or URL. |
| Publication date | date |
Defaults to the first publication date. |
| Slug | slug |
Record key used in the URL on first publish (https://you.leaflet.pub/<slug>). |
| Publication | leaflet_publication |
Name, URL or AT-URI of a publication, or none for your personal page. A list publishes the note to each of them. |
| Preferences | leaflet_discover, leaflet_comments, leaflet_mentions, leaflet_recommends |
true / false, override the defaults of the settings. |
The keys of the first seven properties can be changed in the settings. Deleting a note from Leaflet sets leaflet_publish back to false.
Settings → Text replacement holds a list of rules [regex] → [replacement], applied from top to bottom to the note (embedded notes included) before conversion. Drag the rows to reorder them.
/pattern/flags (e.g. /--(.+?)--/g) or a bare pattern, replaced everywhere.$1, $2… insert the captured groups; \n and \t stand for a line break and a tab.| Obsidian | Leaflet |
|---|---|
| Headings, paragraphs, line breaks (follows the Strict line breaks option) | Header and text blocks |
**bold**, *italic*, ~~strike~~, ==highlight==, `code`, <u>underline</u>, links |
Rich text facets |
Colored highlights ==🔴red==, ==🟠orange==, ==🟡yellow==, ==🟢green==, ==🔵blue==, ==🟣purple== |
Highlight in the color of Obsidian, emoji removed |
@handle.bsky.social |
Mention of the Bluesky account (shown by Leaflet as a link to the profile); unknown handles stay text |
A date alone on its line: @2026-11-13 or @2026-11-13 14:30 |
📅 and the date written in the language of Obsidian, like the date block of the Leaflet editor (Leaflet does not publish that block) |
[[wikilinks]], links to notes |
Link to the published note when it has a leaflet_url, plain text otherwise |
![[image.png|alt|300]],  |
Image blocks, uploaded to your PDS (resized and compressed under 1 MB) |
![[note]], ![[note#heading]], ![[note#^block]] |
Configurable in Conversion → Embedded notes: content inserted in place (also inside lists and quotes), a card opening a sub-page holding only the embedded part (whole note, section or block; the alias of ![[note|alias]] becomes its heading), or a link |
| Dataview queries (DQL, DataviewJS, inline) | Replaced by their result in Markdown (requires Dataview) |
Excalidraw drawings ![[drawing.excalidraw]] |
PNG image exported by Excalidraw (requires Excalidraw) |
| Mermaid diagrams | Image rendered by Obsidian, or code block |
| Bullet, numbered and task lists (nested) | List blocks with checkboxes |
| Blockquotes | Blockquote blocks |
Grid callouts > [!grid] holding images |
Image gallery (one image: an image block); > [!grid|masonry], carousel or strip choose its layout. A grid callout without image is converted like other callouts |
Callouts > [!note] Title |
Configurable in Conversion → Callouts: a blockquote with an emoji and a title on the color of the type, a colored HTML box like Obsidian (with the fonts, size and text color of the publication), or a card opening a sub-page of the post. Foldable callouts ([!note]+, [!note]-) become sub-pages in every mode (can be disabled) |
| Code blocks | Code blocks with language and theme |
$$ math $$ / $inline$ |
Math blocks / inline code |
Footnotes [^1] and inline footnotes ^[note] |
Leaflet footnotes |
--- |
Horizontal rule |
| Tables | HTML block (with the fonts of the publication) or code block |
A Bluesky post alone on its line: bare or labelled link (bsky.app or another client), at:// URI, or the embed code copied from Bluesky |
Bluesky post embed (a post that cannot be found becomes a link card, with a warning) |
A YouTube link alone on its line, or  |
Video embed |
| A web address alone on its line | Link card with the title, description and image of the page; a standard.site post or publication gets its Leaflet card |
<iframe src="…"> |
Embed block |
%%comments%%, <!-- comments -->, block IDs, frontmatter |
Removed |
The plugin only contacts the services needed to publish, and only when you run a command:
public.api.bsky.app, plc.directory or your domain, to resolve your handle and your PDS;public.api.bsky.app to fetch Bluesky posts embedded in a note;Nothing else is collected or sent.
https://github.com/Mara-Li/obsidian-leaflet-atmospheregazette.zip in .obsidian/plugins/ pathmain.js, manifest.json and styles.css (if any) to <Vault>/.obsidian/plugins/gazette/node --version).pnpm run e2e to build the plugin and run the end-to-end tests in Obsidian with wdio-obsidian-service. The tests use the fixtures of tests/vault and the showcase-blog, replace the PDS by an in-memory fake and validate every record against the Leaflet lexicons (tests/lexicons, MIT).pnpm install to install dependencies.pnpm run dev to compile src/main.ts to main.js in watch mode.obsidian dependency.pnpm run lint.pnpm run format.To add a translation:
src/i18n/locales folder with the name of the language (ex: fr.json).<% tp.obsidian.moment.locale() %>en.json file in the new filei18n/index.ts :import <lang> from "./locales/<lang>.json";resources part with adding : <lang>: { translation: <lang> }