pyssg is pre-1.0 and under active development - APIs, config, and themes may change.
pyssg.plugins.wikilink

1 min read

pyssg.plugins.wikilink

Wikilink plugin: Obsidian-style ....

Resolves Note, display and Note against the whole document set (by file stem, then title), rewrites them to anchors, and records a LINK connection (reverse) per resolved link so backlinks work. Embeds (

missing: ...
) are left for the transclude plugin.

Runs as a finalize_content tap (stage 100, before internal links at 200), so every document is already parsed and its page URL is known. A broken wikilink renders as a <span class="broken-link"> rather than vanishing.

rewrite_wikilinks(build: Build, html: str, doc: Document) -> str

finalize_content tap: resolve ... and record LINK edges.

class WikilinkPlugin

Obsidian-style ... links.

WikilinkPlugin.apply(self, builder: Builder) -> None

Factory used in pyssg.config.py.