Skip to content

Posts 0.8.0: Link posts to each other with [[wiki links]]

Posts 0.8.0 lets writers link one PhoenixKit post to another by writing its name in double square brackets, the way a wiki does, and shows at once which links lead nowhere yet.

Wiki links in the post editor

Write [[Target]] in a post’s content, [[Target|Alias]] to show other text, or [[Target#Heading]]. The target names a post by its slug, or by its title in any letter case. In the editor a link to an existing post looks like a link, and a target with no post is shown muted, with the tooltip No post with this title yet. Ctrl/Cmd-click to start one.

A plain click edits the link. Ctrl-click (Cmd-click on a Mac) follows it in a new tab, so the post you are writing stays open. Following a missing target opens a new post with that title already filled in.

On the post’s page the same links point to the posts they name, and a target that names no post becomes plain text. A post the reader may not see, such as someone else’s draft without the See everyone’s posts permission, counts as missing everywhere, so a link never gives away that it exists.

Upgrading

Posts 0.8 needs PhoenixKit 3.5.0 or later and brings Leaf 0.10.1 or later as a direct dependency. There is no migration. Leaf 0.10 cleans up what it shows and saves typed text as text rather than markdown syntax, and 0.10.1 no longer loses text typed right after a wiki link.

Full release notes: Posts 0.8.0

0.8.0 · 16 November 2026

Added

  • [[wiki links]] between posts. In the post editor [[Target]], [[Target|Alias]] and [[Target#Heading]] render as links: a target names a post by slug, or by title case-insensitively (PhoenixKitPosts.resolve_wiki_targets/2, one query for the whole document). A target with no post is shown muted, with a tooltip. Ctrl/Cmd-click follows a link in a new tab, so the post being edited is never navigated away from; following a missing target opens a new post with that title prefilled (/admin/posts/new?title=…). A bare click edits the link. On the post page the same links point at the posts they name; a target that names nothing becomes plain text. A post the viewer may not see (someone else’s draft, without posts.view_all) resolves as missing everywhere, so a link never reveals that it exists.

Changed

  • The phoenix_kit floor is >= 3.5.0 and < 4.0.0 (the ecosystem-wide minimum core), up from 2.65.0. The runtime feature detection for older cores (Settings.get_editor_mode/0) is gone.
  • Leaf is a direct dependency, >= 0.10.1 and < 1.0.0. The post editor renders Leaf itself but relied on core’s transitive pin, which still admits 0.4–0.9. Leaf 0.10 sanitizes what it renders, writes typed text back as text rather than markdown syntax, and keeps a collapse: false toolbar button on the mobile toolbar; 0.10.1 stops losing text typed right after a wiki link.
  • Locked dependencies refreshed (phoenix_kit 3.6.0, phoenix_kit_comments 0.6.0, leaf 0.12.0, mdex 0.14.7).

Posts 0.8.0. Install or update: {:phoenix_kit_posts, "~> 0.8"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.