---
title: '@svartz/plugins'
description: Core pipeline plugins for the Svartz build system
updated_at: '2026-11-26T01:39:36+01:00'
---

# @svartz/plugins

## Entry points

- [@svartz/plugins/browser-analytics](https://svartz.dev/reference/api/plugins/browser-analytics.md)
- [@svartz/plugins/browser-mermaid](https://svartz.dev/reference/api/plugins/browser-mermaid.md)
- [@svartz/plugins/browser-presentation](https://svartz.dev/reference/api/plugins/browser-presentation.md)
- [@svartz/plugins/routes](https://svartz.dev/reference/api/plugins/routes.md)
- [@svartz/plugins/content](https://svartz.dev/reference/api/plugins/content.md)
- [@svartz/plugins/preview](https://svartz.dev/reference/api/plugins/preview.md)

## Interfaces

- [CitationOptions](https://svartz.dev/reference/api/plugins/citationoptions.md)
- [CompiledNoteVersion](https://svartz.dev/reference/api/plugins/compilednoteversion.md) — What `compileNoteVersion` answers.
- [OxHugoOptions](https://svartz.dev/reference/api/plugins/oxhugooptions.md)
- [PresentationOptions](https://svartz.dev/reference/api/plugins/presentationoptions.md)
- [RoamOptions](https://svartz.dev/reference/api/plugins/roamoptions.md)

## Types

- [CorePluginId](https://svartz.dev/reference/api/plugins/corepluginid.md)

## Functions

- [allocateRoutesPlugin](https://svartz.dev/reference/api/plugins/allocateroutesplugin.md) — Assign final page slugs after publication, before links consume them.
- [analytics](https://svartz.dev/reference/api/plugins/analytics.md) — Contribute one browser tracker only when a vault selects an analytics provider.
- [citations](https://svartz.dev/reference/api/plugins/citations.md) — Resolve bibliography paths from the vault, independent of the host process cwd.
- [compileNoteVersion](https://svartz.dev/reference/api/plugins/compilenoteversion.md) — Compiles `markdown`, a version of the published note `note` that sat at `path` in the vault, as the build compiles the note: run `ctx.plugins`' `parseFrontmatter` stage on it alone, then their link, OFM and embed stages on it among the notes and attachments the build publishes, embedding them from the build's own sources, then compile it with the build's compiler steps and any its own content alone needs. The version takes the note's place and route, and links resolve as they do from the note now.
- [compileProtectedNoteSource](https://svartz.dev/reference/api/plugins/compileprotectednotesource.md) — Compile a protected note in memory for the separate encrypted bundle.
- [createCorePlugins](https://svartz.dev/reference/api/plugins/createcoreplugins.md) — Create the canonical ordered set of core plugins. Returned array matches the pipeline execution order.
- [discoverFiles](https://svartz.dev/reference/api/plugins/discoverfiles.md) — core:discover-files — traverse vault directory, read file contents, assign slugs.
- [emitArtifacts](https://svartz.dev/reference/api/plugins/emitartifacts.md)
- [emitDiscovery](https://svartz.dev/reference/api/plugins/emitdiscovery.md)
- [emitImages](https://svartz.dev/reference/api/plugins/emitimages.md)
- [filterUnpublished](https://svartz.dev/reference/api/plugins/filterunpublished.md)
- [hardLineBreaks](https://svartz.dev/reference/api/plugins/hardlinebreaks.md) — Turn prose newlines into `<br>` only when this plugin is configured.
- [indexContent](https://svartz.dev/reference/api/plugins/indexcontent.md) — core:index — single canonical index artifact producer.
- [keepsAttachment](https://svartz.dev/reference/api/plugins/keepsattachment.md) — Whether the build may publish the attachment at `path` inside the vault: discovery reads its folder and the exclude patterns let it through. The build publishes it only once a published note references it.
- [oxHugoFlavoredMarkdown](https://svartz.dev/reference/api/plugins/oxhugoflavoredmarkdown.md) — Normalize ox-hugo syntax before the required frontmatter and link parser.
- [parseFrontmatter](https://svartz.dev/reference/api/plugins/parsefrontmatter.md) — core:parse-frontmatter — extract frontmatter and raw links from each file.
- [presentation](https://svartz.dev/reference/api/plugins/presentation.md) — Let readers present any note: `plugins: [presentation()]` in `svartz.config.ts`. The browser script and stylesheet work with every theme.
- [publishedAttachments](https://svartz.dev/reference/api/plugins/publishedattachments.md) — The vault attachments the site publishes, each at `<mount>/<path>`: the files public notes reference, as `core:filter-unpublished` settles them. Attachments only protected notes reference stay in their encrypted payload.
- [publishesNote](https://svartz.dev/reference/api/plugins/publishesnote.md) — Whether the build publishes a note at `path` inside the vault with `frontmatter`: discovery reads its folder, and the vault's include and exclude patterns let it through and it isn't a draft, unless a publication date publishes it anyway, and it isn't private. A published note may still be password-protected. Page history judges a note's earlier versions with it, at the paths they had then.
- [resolveLinks](https://svartz.dev/reference/api/plugins/resolvelinks.md)
- [roamFlavoredMarkdown](https://svartz.dev/reference/api/plugins/roamflavoredmarkdown.md) — Add Roam prose syntax after the normal GFM parser.
- [sharedAttachmentNames](https://svartz.dev/reference/api/plugins/sharedattachmentnames.md) — File names of published attachments that another attachment in the vault shares. The build resolves those by path only, so a resolver that sees only `publishedAttachments` needs them to resolve the same; their names are already public, and the other files' paths stay in the build.
- [transformDescription](https://svartz.dev/reference/api/plugins/transformdescription.md)
- [transformEmbeds](https://svartz.dev/reference/api/plugins/transformembeds.md)
- [transformGfm](https://svartz.dev/reference/api/plugins/transformgfm.md) — Register GFM parsing only while this plugin is active.
- [transformLatex](https://svartz.dev/reference/api/plugins/transformlatex.md) — Render public math with KaTeX and declare its stylesheet.
- [transformOfm](https://svartz.dev/reference/api/plugins/transformofm.md)
- [transformSyntax](https://svartz.dev/reference/api/plugins/transformsyntax.md) — Add syntax highlighting for public notes with code.
- [transformToc](https://svartz.dev/reference/api/plugins/transformtoc.md) — core:transform-toc — Table of Contents extraction.
- [wikilinkResolver](https://svartz.dev/reference/api/plugins/wikilinkresolver.md) — The note a wikilink target names from anywhere in the vault, as `core:resolve-links` resolves it, or null. A target that `closest` would settle by the linking note's folder names no note here.

## Variables

- [ALLOCATE_ROUTES_ID](https://svartz.dev/reference/api/plugins/allocate_routes_id.md)
- [ANALYTICS_ID](https://svartz.dev/reference/api/plugins/analytics_id.md)
- [CORE_PLUGIN_IDS](https://svartz.dev/reference/api/plugins/core_plugin_ids.md) — @svartz/plugins — core pipeline plugins for the Svartz build system.
- [DISCOVER_FILES_ID](https://svartz.dev/reference/api/plugins/discover_files_id.md)
- [EMIT_ARTIFACTS_ID](https://svartz.dev/reference/api/plugins/emit_artifacts_id.md)
- [EMIT_DISCOVERY_ID](https://svartz.dev/reference/api/plugins/emit_discovery_id.md)
- [EMIT_IMAGES_ID](https://svartz.dev/reference/api/plugins/emit_images_id.md)
- [FILTER_UNPUBLISHED_ID](https://svartz.dev/reference/api/plugins/filter_unpublished_id.md)
- [INDEX_CONTENT_ID](https://svartz.dev/reference/api/plugins/index_content_id.md)
- [PARSE_FRONTMATTER_ID](https://svartz.dev/reference/api/plugins/parse_frontmatter_id.md)
- [RESOLVE_LINKS_ID](https://svartz.dev/reference/api/plugins/resolve_links_id.md)
- [TRANSFORM_DESCRIPTION_ID](https://svartz.dev/reference/api/plugins/transform_description_id.md)
- [TRANSFORM_EMBEDS_ID](https://svartz.dev/reference/api/plugins/transform_embeds_id.md)
- [TRANSFORM_GFM_ID](https://svartz.dev/reference/api/plugins/transform_gfm_id.md)
- [TRANSFORM_LATEX_ID](https://svartz.dev/reference/api/plugins/transform_latex_id.md)
- [TRANSFORM_OFM_ID](https://svartz.dev/reference/api/plugins/transform_ofm_id.md)
- [TRANSFORM_SYNTAX_ID](https://svartz.dev/reference/api/plugins/transform_syntax_id.md)
- [TRANSFORM_TOC_ID](https://svartz.dev/reference/api/plugins/transform_toc_id.md)
