47 KiB
@jackyzha0/quartz
5.3.0
Minor Changes
55311cb: Links:disableBrokenWikilinksis on by default. Internal links to pages that don't exist get thebrokenclass, as Obsidian marks unresolved links (is-unresolved), so Quartz's and Obsidian themes' unresolved-link styles apply. Tag and folder pages, which are generated later, count as existing. Setlinks.disableBrokenWikilinks: falsefor the old behaviour.857de3b: Quartz now requires Node.js 22.22 or later (was 22), for chokidar 6, which watches content in--servemode. chokidar 6 confirms each change against the file system before rebuilding and fixes missed and duplicate change events.df11e31: Experimentalextendsinquartz.config.yaml:extends: default(or a path) starts fromquartz.config.default.yamland applies only the changes in your file.configurationandlayoutmerge key by key, plugin entries merge with the default entry of the same plugin. Configs withoutextendsbehave exactly as before.09a6b03:contentIndex.jsonentries havedateFromFrontmatter: truewhen theirdateis the one set in the page's frontmatter for the configured date type (not from git or the file system), so client-side components can tell explicit dates apart, e.g. for folder dates in the explorer.d5dad62:contentIndex.jsonentries now include the page'sdate(the onedefaultDateTypeselects) as an ISO 8601 string, so client-side components such as the explorer can sort by date. Pages without a date have nodatefield.2209ee6: Layout conditions: addis-index(only on the home page) andis-folder-index(only on folder index pages), and letnot-<condition>negate any condition, built-in or registered (not-has-tags,not-has-backlinks, …).c770681: Transclusions use Obsidian's embed markup: adiv.markdown-embed-title(the note's title, for a whole-note embed; it was anh1), then the content indiv.markdown-embed-content > div.markdown-preview-view.markdown-rendered, then the link to the original. Obsidian themes' embed styles apply (embed titles, padding, maximum height). The title looks as before without a theme. Obsidian's icon link to the note (a.markdown-embed-link, Lucide's maximize-2) follows; Quartz hides it, and Obsidian themes, through @quartz-themes/core, show it in the embed's corner.c229350: Plugin entries can declarebefore:/after:(plugin names). They are checked againstorder: between plugins with the same order they decide, and a contradiction, a cycle or an unknown name stops the build with a clear error.extends:also accepts anhttps://URL, fetched with a timeout and cached in.quartz-cache/extends/for offline builds (QUARTZ_EXTENDS_OFFLINE=1).b25eba0: New opt-inconfiguration.slugs.stripDiacritics: strips accents and other diacritics from generated slugs (české/čeština.md→/ceske/cestina). Links, embeds, aliases, permalinks, tags and folder pages resolve to the stripped addresses; heading anchors keep their diacritics. Turning it on changes the URLs of existing pages; their old addresses redirect to the new ones. Only Latin letters change: they lose their accents and fold to ASCII (ł→l,ø→o,ß→ss,æ→ae); other scripts (Korean, Japanese, Chinese, Greek, Cyrillic, Indic, Hebrew, Arabic, …) are left as written. Plugins that make slugs follow the option when they bundle@quartz-community/utils1.3 or later, as the plugins updated in this release do (1.3.1 for the ASCII folding).
Patch Changes
-
f7b41e7: Block anchors are#^id, as in Obsidian:@quartz-community/utils1.3.2 and@quartz-community/rehype-obsidian1.6.0, bundled by obsidian-flavored-markdown 2.5.3, github-flavored-markdown 2.2.2, canvas-page 1.1.4, note-properties 1.2.3 and bases-page 1.5.5, give blocksid="^id"and link to them as#^id. A block and a heading with the same name (^para-1,## Para 1) no longer share an id, so[[#^para-1]]and[[#Para 1]]each reach their own target. canvas-page also scopes the ids of text nodes rendered withtextNodeMarkdown: basic. -
3df0062: Block anchors are#^id: with @quartz-community/utils 1.3.2 and rehype-obsidian 1.6.0, blocks get the id^idand links to them#^id(was#id), as in Obsidian, so block^para-1and heading## Para 1no longer share an id. A block transclusion finds its block whatever the case of its^id(![[note#^Para-1]]), and the popover scrolls to a block it links to. -
2b061ab: Links: links to files Quartz emits, such as[feed](/index.xml),/sitemap.xml,/static/icon.pngor/404.html, are no longer markedbroken. A link is only marked when its target is known to be missing: a page that doesn't exist, or a vault file (image, audio, video, PDF, canvas, base) the content doesn't have. Other files may come from an emitter, so they are left unmarked. -
734e1b8: Links to pages removed by a filter (drafts, ExplicitPublish) are now markedbroken(withdata-filtered="<filter>"), like links to pages that don't exist — they 404 on the site. -
9de19e3:extends(experimental):npx quartz plugin list,status,doctor,install,pruneandnpx quartz inforead the merged configuration, as the build does. Before, they saw only the entries in your own file, solistshowed a handful of plugins anddoctorwarned that overlay entries withoutenabledare disabled.enable,disableandconfignow work on plugins from a base by adding or changing your own entry for them (only that change is written; the merged configuration never is),config --unsetresets an option a base sets withnull, andremoverefuses a plugin that comes from a base.npx quartz build --servealso rebuilds when a local base file changes. -
a51b7df:extends(experimental): presets in a list now stack. Withextends: [./a.yaml, ./b.yaml], where both extenddefault, everythinga.yamlchanged was lost, becauseb.yamlwas merged on top with all ofdefaultagain. Each file of theextendschain is now applied once, after the bases it extends, so the order isdefault→a.yaml→b.yaml→ your file, and later entries win only where they change the same thing.Also: a plugin source with a
subdirand nonameis matched by repository and folder, so an entry for one plugin of a monorepo no longer changes another;extends: []extends nothing; an empty base file is an empty config;HTTPS://URLs are accepted; andplugins:that isn't a list gets a clear error. -
b2241c3: Layout conditions:is-folder-indexis false on tag pages. The all-tags page (tags/index) matched it, so components meant for folder pages showed there; nothing undertags/counts as a folder index now. -
cc253be: Footnote references and back-links keep theinternalclass but no longer getinternal-link: Obsidian doesn't treat them as note links, and Obsidian themes' link styles (underline, colour) overrode their footnote styles. -
71454c7: Markdown links in frontmatter with an angle-bracket destination, which Obsidian writes for paths with spaces ([Exec Briefing](<./Exec Briefing.md>)), resolve to the note instead of a missing….mdpage, so the note gets the backlink and graph edge. -
8be4d8e: Markdown links in frontmatter are read as CommonMark reads them: angle-bracket destinations with parentheses ([b](<Note (2024).md>)), balanced parentheses in plain destinations ([d](Note_(2024).md)), titles in"…",'…'or(…)([c](<My Note.md> "t")), and backslash escapes. They pointed atnote-(2024andmy-note.md-t, so the linked note got no backlink or graph edge. -
c33b6cf: @quartz-community/graph 1.0.5: the graph scales to large sites. On 3,000 notes and 33,000 links, the global graph opens in 0.5 s instead of 2.5 s, and it stops using the CPU once its layout settles. It also loads d3 and PixiJS as pinned, integrity-checked versions, with PixiJS's minified build (200 KB instead of 2.5 MB on every page). -
6ce31a4: -@quartz-community/graph1.0.7: the local graph on folder index pages shows the folder's connections instead of a single node.@quartz-community/utils1.2.1:unescapeHTMLdecodes each entity once, so a page description that mentions<br>keeps it in the page's meta tags instead of turning it into<br>.
-
9d6cdba: Pages get a canonical link (<link rel="canonical">, the page's URL as the sitemap lists it), andog:urluses the same URL:folder/instead offolder/index, and the site root for the home page.og:site_nameis aproperty(it was aname, which Open Graph readers ignore). Notes areog:type: article, witharticle:modified_timeand, when the frontmatter has a date,article:published_time. The home page and folder and tag pages staywebsite.The
fonts.gstatic.compreconnect is a CORS connection, which the font files can reuse, and the unusedcdnjs.cloudflare.compreconnect is gone. -
c79adab: Each component's CSS is parsed on its own before the component stylesheet is put together, so a missing}or an unclosed comment in one plugin's CSS no longer swallows the rules of every component after it, and a stray}no longer fails the build; a syntax error is reported with the component's name. -
3b78d16: Frontmatter is read with js-yaml 5, using YAML 1.2's core schema (the values Quartz read before are unchanged). Frontmatter with only comments now has no properties, as in Obsidian, instead of being reported as invalid frontmatter. -
a55f25f: The page frames mark their regions for assistive technology: the centre column is a<main>(it was adiv.center; the classes are unchanged) and the default frame's sidebars are<aside>elements. Screen readers can jump to the page's content, and the page looks the same. -
7714325: Heading transclusions and their footnotes look through Obsidian's per-block wrappers (div.el-h2 > h2), which@quartz-community/rehype-obsidiannow renders around each of a note's top-level blocks.blockOf()(incomponents/transcludeScope.ts) returns the block inside a wrapper, for other code that walks a page's top-level blocks. -
b4d7358: Obsidian's fold arrows in headings and list items (.heading-collapse-indicator,.list-collapse-indicator, rendered by rehype-obsidian for Obsidian themes) are hidden unless obsidian-flavored-markdown'sfoldHeadings/foldListsturn folding on. -
0bab8ea: @quartz-community/obsidian-flavored-markdown 2.4.0 (Obsidian's block wrappers, heading and list folding, missing-attachment embeds, Pele diagrams) and @quartz-community/og-image 1.1.2 (no build failure on emoji variants such as the footnote back-link↩︎). -
db7484e: @quartz-themes/core 3.2.0 (Obsidian's block wrappers styled natively, property inputs, fold arrows) and the plugin releases that carry Obsidian's markup:- latex 1.1.0: maths in Obsidian's math elements;
- note-properties 1.2.0: Obsidian's properties markup;
- search 1.1.0: the quick switcher's classes, excerpts as written;
- explorer 1.1.2: Obsidian's folder rows;
- table-of-contents 1.0.4: the collapsed table of contents no longer clips its header;
- graph 1.0.4: colours follow Obsidian themes;
- syntax-highlighting 1.0.4: the copy button's stylesheet in the base layer;
- canvas-page 1.0.4: heading embeds look through the block wrappers.
-
fd744c0: Theobsidiantemplate folds headings and lists (obsidian-flavored-markdown'sfoldHeadingsandfoldLists), as Obsidian does by default. -
7b4da1c: A note whose name ends in "index" (reindex.md) is anog:type: articleagain. The home page and folder index pages were told apart by the slug ending inindex, not by its last segment, so such notes werewebsiteand had no article dates. -
bc0e393: Plugin order:before:/after:naming a plugin that is built into Quartz now (crawl-links,remove-draft,content-index) passed validation but was ignored. They now mean the built-in that replaced them (links,drafts,contentIndex), sobefore: crawl-linksorders the plugin before link processing, and is checked against itsorderlikebefore: links. -
52af9f1:PageListentries areh2headings under the page'sh1(they wereh3, which skipped a level for screen readers), at theh3's size, as in@quartz-community/folder-pageand@quartz-community/tag-page. -
f646ffe: Plugin fixes from the pre-release audit:@quartz-community/latex1.1.2: KaTeX's stylesheet applies on pages whose maths comes from a transclusion or a popover, and after SPA navigation (it stayed print-only).@quartz-community/obsidian-flavored-markdown2.5.2: bundles rehype-obsidian 1.5.1 and remark-obsidian 2.2.4, so same-page block links ([[#^id]]) work, only real YouTube hosts become embeds, large notes use less memory, and underpreset: strictother plugins' text rewrites survive in notes with callouts;math: falseworks understrictwith the LaTeX plugin; Markdown-link embeds with a query or in reference style are transcluded.@quartz-community/github-flavored-markdown2.2.1:replacementsleaves autolink text alone, applies to wikilink aliases, and honours backslash escapes;data-headingkeeps the heading as written.@quartz-community/canvas-page1.1.2 and@quartz-community/tag-page1.0.7: file nodes find headings as Obsidian writes them (#Sub Section), embeds in text nodes are filled in, text-node tags get tag pages, and ids are unique per node; the tag index lists pages ash3under each tag.@quartz-community/search1.1.2: Enter on a result navigates without a full reload,#tagsmatch withslugs.stripDiacritics, and searches ignore accents (cremefinds "Crème").@quartz-community/explorer1.2.2: keeps the current page open after arenderevent without details (encrypted pages), and each explorer's phone button is named after its title.@quartz-community/bases-page1.5.4: view tabs follow the WAI-ARIA tabs pattern (arrow keys, unique ids).@quartz-community/graph1.0.8: no animation loop while the graph is idle, closed or removed.@quartz-community/created-modified-date1.0.5: stand-in dates are marked, so they stay out ofcontentIndex.json, and git dates work for a symlinked vault in a content folder outside git.@quartz-community/og-image1.1.3,@quartz-community/ox-hugo1.0.3,@quartz-community/breadcrumbs1.0.5,@quartz-community/folder-page1.1.3,@quartz-community/note-properties1.2.2: descriptions decoded once and keycap/flag emoji in social images; captioned figures and indented code in ox-hugo; utils 1.3.1 (Latin-onlystripDiacritics).
-
8c61245: Plugin updates:@quartz-community/explorer1.2.0:sortoption (rules applied in sequence, e.g. folders first, then newest) androotFolderoption, so several explorers on one page work side by side; theorderoption is applied; scroll fixes (the bottom fade, the scroll position across SPA navigation withlayout.sidebars.left: scroll, and opening a page no longer scrolls the page itself).@quartz-community/obsidian-flavored-markdown2.5.0: notes, canvases and bases embedded with a Markdown link () are transcluded, as in Obsidian;mathoption (falseleaves dollar signs as text). With@quartz-community/rehype-obsidian1.5.1: same-page block links ([[#^id]]) reach their block, and only images on YouTube become YouTube embeds.@quartz-community/github-flavored-markdown2.2.0:singleTildeoption (falsestrikes only~~text~~, as Obsidian does) andreplacementsoption (for example Quartz 4's arrows), empty by default.@quartz-community/canvas-page1.1.0: the mouse wheel and trackpad pan the canvas, as in Obsidian (wheelBehavior); text nodes are rendered with the site's Markdown plugins, so Mermaid diagrams, callouts and math work in them (textNodeMarkdown).@quartz-community/utils1.3.0: thestripDiacriticsslug option reaches plugins too; links in embedded folder notes point at the right directory.@quartz-community/created-modified-date1.0.4: git dates resolve whencontent/is a symlink to a vault in another git repository.@quartz-community/ox-hugo1.0.2: the Markdown rewrites leave code alone and no longer match across unrelated text.
-
96fc9c1: Plugin updates for accessibility and page speed:- Text in the table of contents, footer, folder and tag listings, search button and Bases group headings meets WCAG AA contrast in light and dark mode. Under an Obsidian theme from quartz-themes (
@quartz-themes/core3.2.1), the search button and Bases group headings keep the theme's faint text colour. - Page listings in folder and tag pages use
<h2>titles (at the previous size), so headings no longer skip a level. - Valid ARIA and unique ids in the table of contents, explorer, backlinks, heading anchors and Bases views.
- The graph loads d3 and PixiJS only when it scrolls into view (or when the global graph opens), instead of on every page.
- KaTeX's stylesheet no longer blocks rendering on pages without math.
@quartz-community/remark-obsidian2.2.3: thelegacyparser no longer uses memory that grows with the square of the note's length on notes with many tables, lists or other blocks.
- Text in the table of contents, footer, folder and tag listings, search button and Bases group headings meets WCAG AA contrast in light and dark mode. Under an Obsidian theme from quartz-themes (
-
661b56a: Release tags are verified on GitHub: the release workflow creates eachvX.Y.Ztag as a lightweight tag on the merged release commit (which GitHub signs) instead of letting the release create an unsigned annotated tag. It also starts the Docker build for the tag, so versioned images (5.3.0,5.3) are published for each release (none were built for 5.1.0–5.2.2). -
799b8e3: Component styles are one stylesheet (component-<hash>.css, in thequartz-baselayer as before) instead of one per component. Pages load about 20 fewer render-blocking stylesheets (29 to 11 on the docs site), and the styles they compute are unchanged. -
e0f1e03: A scroll made just before Back (less than 150 ms) is no longer lost: Forward returns to where the reader scrolled. -
3ab4503: With SPA navigation, Back and Forward return to where the reader was on each page. The router keeps each history entry's scroll position and restores it after swapping the page in. The browser restored the position while the previous page was still on screen, so it came out wrong: Back after a table-of-contents link stayed at the heading, and Back to a page landed at its top or bottom. Back and Forward between headings of the same page now only scroll, instead of reloading the page, and a reload keeps the position. -
0d05ef7: Build-time stand-in dates are no longer written as real dates. A page whose date no source gives (for exampledefaultDateType: publishedand nopublished:, or an invalid one) gets the build time from the date plugin;contentIndex.jsonnow leaves itsdateout, andarticle:published_time/article:modified_timeare only set for real dates (an invalidpublished:gave the build time). RSS and the sitemap keep the build time. created-modified-date 1.0.5 lists its stand-ins infile.data.fallbackDates; with older versions apublisheddate only counts when the frontmatter sets it. -
dd667ee:slugs.stripDiacriticsreaches plugins and the browser: bases-page 1.5.3, breadcrumbs 1.0.4, canvas-page 1.1.1, explorer 1.2.1, folder-page 1.1.2, note-properties 1.2.1 and obsidian-flavored-markdown 2.5.1 bundle@quartz-community/utils1.3, so their links, tag pages from inline tags, canvas file nodes and base views use the stripped addresses. Quartz also passes the option to scripts in the browser, so the explorer places folders and pages with accents where the build put them. -
093d233: The templates' colours meet WCAG AA contrast (4.5:1) on their backgrounds. Lightgraygoes from #b8b8b8 to #727272 (was 1.9:1), darkgrayfrom #646464 to #7f7f7f (was 3.1:1), and lighttertiary, the link hover colour, from #84a59d to #587971 (was 2.5:1). Text selection mixes 40% oftertiaryinstead of 60%, so text stays readable on it in both modes. Existing sites keep the colours in their ownquartz.config.yaml. -
7c3df89: Type checking (npm run check) uses TypeScript 7.tsconfig.jsonswitchesmoduleResolutionfromnode(removed in TypeScript 7) tobundler, which reads packages'exports: custom code that imports a package's internal files may need to import from the package itself. -
af36801: Links to a folder or tag page that isn't generated (a folder whose notes are all drafts or that holds only images, a tag no published page uses) are marked broken, and in watch mode a page whose links to a page that was published or filtered out change is re-emitted, so its marks don't go stale.
5.2.2
Patch Changes
ee1cdff: Updates@quartz-themes/coreto 3.1.1: the Obsidian template (theme: default) works again (since 3.0 the plugin failed to initialise looking "default" up as a community theme);default,obsidianandObsidian defaultuse Obsidian's built-in theme.
5.2.1
Patch Changes
3f8104f: Fonts: explicitly configuredbody,codeandinterfacefonts now apply with an Obsidian theme. They are also written to Obsidian's--font-*-overridevariables onbody, which the theme's styles read; before, the theme's ownbodyfont variables won over Quartz's:rootones.c392e17: Fonts: theinterfacefont and per-heading fonts (h1…h6) are now loaded from Google Fonts (or self-hosted withfontOrigin: selfHosted) like the other fonts; before, they only rendered if installed locally. A font with a single weight now loads that weight (weights: [700]loaded 400), and a single-weight italic font no longer makes the Google Fonts request fail.7531e67: On phones and tablets, one too-wide item in the header row (a long page title, or an Obsidian theme's styled header) no longer widens the page past the screen. The content column isminmax(0, 1fr)instead ofauto(also in the full-width and minimal frames), and text in the phone header row may break anywhere.95e96b4: Updates@quartz-themes/coreto 3.1, which converts any Obsidian community theme at build time: name a theme as Obsidian lists it (Minimal,AnuPpuccin), a GitHub repository, a URL or a localtheme.css; Style Settings exports and CSS snippets apply as in Obsidian. Theme ids from 2.x (tokyo-night) keep working;aspects,include,calloutStyleandfontswere removed, and the@quartz-themes/<theme>packages are no longer needed. Quartz keeps its own page layout under a theme,themeFonts: falseuses the site's Quartz fonts, and a theme's embedded fonts ship as separate files. See ThemesCore.
5.2.0
Minor Changes
4ed26b3:quartz build --config <path>(or-C) reads the site configuration from another file than./quartz.config.yaml, so the config can live with the content outside the Quartz folder, and one Quartz install can build several content repositories (#2646). With--watch/--serve, changes to that file trigger a rebuild.607ccb8: Theme support for Obsidian themes: plugin factories may be async (Quartz awaits them); font loading is built in asconfiguration.fonts(formerly the@quartz-community/quartz-fontsplugin, whose config entry is applied automatically); callouts and transclusions render as<div>like in Obsidian; popovers carry Obsidian'shover-popover/markdown-embedclasses.9705969: Transformers can declarerenderTransforms: transforms of a page's content when it is rendered,beforetransclusions are inlined and page types'treeTransformsrun (bases are filled in), andafterthem, on the finished content. encrypted-pages uses them to encrypt a note's finished content, so bases and transclusions in encrypted notes show when unlocked (quartz-community/encrypted-pages#2).
Patch Changes
-
ed4f653: Bases (bases-page 1.4.0) render closer to Obsidian:- custom summaries are evaluated, and summaries show their name and appear per group;
html(),image(),icon(), regular expressions andfile.backlinkswork in formulas;kanbanviews,groupOrder, grouped list and cards views, and the list and row height options work.
-
99685cf: Bases inside a transcluded note render that note's own base, and links in bases followconfiguration.links(external-link icon, new tab, lazy images, popovers) (bases-page 1.5.1). -
9a04652: Bases columns are labelled with the property's name, as in Obsidian (priority,file name), instead of title-cased (Priority,Name); bases-page's newpropertyLabels: titleoption keeps the title-cased labels (bases-page 1.5.0). -
9c46b01: Updates@quartz-community/obsidian-flavored-markdownto 2.3.1, which renders callout titles in.callout-title-innerwithout a<p>, as in Obsidian (themes put the title below its icon otherwise). Callout titles are styled on.callout-title-inneritself (colour, margin, line height); the> prule stays for sites on an older obsidian-flavored-markdown. -
cdc5a02: Updates dependencies with minor and patch releases:@clack/prompts1.9.0,@napi-rs/simple-git1.2.0,isomorphic-git1.44.18,minimatch11.0.9,preact-render-to-string6.8.3 andprettier3.10.1. -
8578f2f: Permalinks work on large sites: sites of 192 or more files are parsed in worker threads, which didn't receive the permalinks, so a note with apermalinkwas published at its file path (#2644). A permalink with.or..segments is ignored with a warning instead of writing pages outside the output folder (#2641). WithprettyLinks, a wikilink to a note whose name has a space or a non-ASCII letter reads as the note's name without its folder, as other links do (#2643). -
166d09b:quartz plugin installmoves a plugin to its pinned commit even when the plugin's build left tracked files changed (itspackage-lock.json). In CI, a plugin cache restored throughrestore-keyskept those changes, and installing an updated plugin failed with "Please commit your changes or stash them" (#2639). -
6f872d4: Updates@quartz-community/alias-redirectsto 1.0.4 (aliases that point outside the site are skipped, #2641) and@quartz-community/note-propertiesto 1.1.5 (links in properties to missing pages get thebrokenclass withdisableBrokenWikilinks, #2635). -
0ab525c: Updated plugins that rely on Quartz 5.1 and now declare it (quartzVersion: ">=5.1.0"): encrypted-pages 1.2.0, explicit-publish 1.2.0, unlisted-pages 1.2.0, obsidian-flavored-markdown 2.2.0, folder-page 1.1.0 and bases-page 1.3.0. -
49d0563: Transcluded content no longer duplicates ids. Headings and footnotes inside a transclusion get ids unique on the page, and the links inside it go to them, so the host's footnotes and a[[#Heading]]link inside a transclusion jump to the right place. A same-page link whose target isn't in the transcluded section links to the transcluded page. A heading transclusion (![[note#Heading]]) holds only the footnotes it references instead of the page's whole footnotes section.
5.1.0
Minor Changes
-
eab5c53: A page type'sgeneratecan be async: it may return a promise of its virtual pages, which Quartz awaits in full and incremental builds. Page types that create pages from other files (like.mdx) can now run content through the site's transformers or bundle with esbuild; previously a promise crashed the build with "virtualPages is not iterable" (#2575). -
f768b1e: Clearer failures: errors thrown by a plugin now name the plugin (package, version, source), what it was doing (transforming, filtering, emitting, rendering a component) and the file or page, list problems Quartz already knew about that plugin (incompatible Quartz version, missing required data), and say how to check and where to report it. Plugin stack frames are no longer hidden. Warnings from loading the config are repeated in a summary at the end of the build, together with a note about links to pages that are not on the site (including links to drafts). -
f768b1e: Frontmatter parsing, link resolution, draft handling and the content index are now built into Quartz (configured underconfiguration.frontmatter,.links,.draftsand.contentIndex) instead of being plugins that silently broke the site when disabled. Existingcrawl-links,remove-draftandcontent-indexentries keep working and are applied automatically;npx quartz plugin doctor --fixmoves them intoconfiguration. Plugins can add fields tocontentIndex.jsonwith anextendContentIndexhook, and emitters can reuse the built index viactx.contentIndex. The effective built-in settings are available to plugins asctx.cfg.configuration.<key>. -
e4ebd28: Markdown renders as it does in Obsidian: Quartz now uses ObsidianFlavoredMarkdown 2.0 and GitHubFlavoredMarkdown 2.0.- Line breaks changed: a single line break inside a paragraph now renders as
<br>, as in Obsidian's default reading view. SetstrictLineBreaks: truein the ObsidianFlavoredMarkdown options to keep the previous behaviour (a space). - ObsidianFlavoredMarkdown parses with Obsidian's own parser by default (
preset: "legacy"). Usepreset: "strict"for TOML (+++) frontmatter or plugins that add their own Markdown syntax. - Also new: callouts parsed like Obsidian, inline footnotes (
text^[note]), image sizes on Markdown images (), Mermaid diagrams that follow the theme's colours, an opt-in Pele diagram renderer, and inline tags that only link to tag pages that exist. - GitHubFlavoredMarkdown now runs before ObsidianFlavoredMarkdown (order 30, then 40), as in the default config. If your config sets
orderfor either plugin, keep GitHubFlavoredMarkdown first.
See the plugins' changelogs for details.
- Line breaks changed: a single line break inside a paragraph now renders as
-
15b8eef: Permalinks work as in Obsidian Publish (jackyzha0/quartz#2572):permalink: pagemakes the note's address/page, whatever its file path. Links to the note, backlinks, the graph, the sitemap, RSS and the content index use the permalink, links inside the note still resolve relative to its file, and the note's file path redirects to the permalink (with AliasRedirects, likealiases). Previously the permalink was only a redirect to the file path. A permalink that is already another page's address is ignored with a warning. In navigation (the content trie used by the explorer, folder pages and breadcrumbs) the note stays in its folder, as on Obsidian Publish sites. -
c84f348: Plugins can ship files with the site:externalResources()may returnassets: [{ from, to }](a file or directory on disk), which Quartz copies tostatic/plugins/<to>. Client scripts find them through the newwindow.quartzStaticUrlpage global (absolute URL ofstatic/, valid across SPA navigations). Use it for large or optional client code loaded withimport()only where needed, instead of inline scripts, which every page downloads. Invalid or conflicting targets and missing sources are build warnings. -
f768b1e: Plugins can declare what they provide and need (quartz.capabilities); the build warns when a required provider is missing (e.g. "backlinks requires datalinks… enable configuration.links"). Rendered plugin components carrydata-quartz-plugin/data-quartz-componentattributes, so you can tell which plugin rendered which part of a page.fetchDataresolves to{}instead of rejecting whencontentIndex.jsonis missing. -
f768b1e: Plugin management: plugin commands exit non-zero on failure, CLI edits keep comments inquartz.config.yaml, lockfile pins are honoured everywhere, npm plugins show up inplugin list,plugin adddetects duplicates, misspelled plugin options are flagged, and the newplugin doctorchecks config, lockfile and installs.plugin config --set a.b=1now writes a nested key. -
3c18be8: Plugins can be marked deprecated withquartz.deprecated(a message naming the replacement) in theirpackage.json. Quartz warns while a deprecated plugin is enabled — when the build loads the config (repeated in the end-of-build summary), inplugin addand inplugin doctor— and suggests removing it. The deprecatedhard-line-breaksplugin is no longer listed in the default config and templates: ObsidianFlavoredMarkdown 2.0+ handles line breaks (strictLineBreaks). -
50203da: Plugins that fail to load (can't be installed, throw on import, export no plugin) are reported as errors with the plugin, version, the file and line where it failed and what to do, and listed again at the top of the end-of-build summary. Previously some of these failures were silent. Locally the build continues without them; in CI (CIset) it fails unlessQUARTZ_ALLOW_BROKEN_PLUGINS=1. Fixed along the way: the entry module of npm-installed component plugins (and npm plugins without a declared category) was never imported, so theirinit(options)never ran. -
01bc5c5: Updated default plugins (see each plugin's changelog for details):- Changed heading ids: with SmartyPants on (the default), a heading containing
--now gets the same id as on GitHub:## Range 1--2→range-1--2(wasrange-12). Links that hard-code the old id need updating;[[page#Range 1--2]]keeps working. Links Obsidian writes to headings containing:,|,^,#or\now reach them, and heading ids, links and table-of-contents entries share one slug function (GitHubFlavoredMarkdown 2.1.0, TableOfContents, CrawlLinks, utils 1.1). - Bases now behave as in Obsidian 1.15 (BasesPage 1.2.0, checked against real Obsidian): subtracting dates gives a duration (
(due - today()).days); nested tags match (file.tags.contains("#project")finds#project/x); dates display in the site's locale, anddate()reads only ISO-style dates; cards use Obsidian's aspect ratio and layout;link()with any URL is an external link; a base opens on its first view; tags link to their tag pages;this.<property>in an embedded base reads the embedding note. Base views also list canvas and Excalidraw files with their real paths,thisin an embedded base is that note, and Quartz's generated pages (404, tags, folder listings) no longer appear as notes. Changed:file.tagskeeps#and the original case, thetagsproperty no longer includes inline tags,hasTag(a, b)matches any of its tags, the root folder is/, textcontainsignores case, and the cards'imageAspectRatiois height/width (it was inverted).file.nameis as in Obsidian: a Markdown note's name has no extension (Note), other files keep theirs (Plan.canvas);file.fullnamehas the extension for every file. - Folder pages list folders that hold only canvas, base or other generated pages (FolderPage).
- A footnote referenced only from a table cell past the table's columns is rendered, as in Obsidian (ObsidianFlavoredMarkdown 2.1.1, with remark-obsidian 2.2.0: faster parsing and fixes for deeply nested notes and
\r\nline endings). - A short wikilink to an Obsidian folder note (
[[Topic]]forTopic/Topic.md) reaches the folder page (utils 1.1). - NoteProperties no longer bundles gray-matter's
eval-based JavaScript frontmatter engine.
- Changed heading ids: with SmartyPants on (the default), a heading containing
-
f768b1e: Plugin version requirements are enforced: a plugin'squartzVersion(package.json→quartz.quartzVersion, any semver range) is checked when the config loads (a warning locally; in CI —CIset — the build fails unlessQUARTZ_ALLOW_INCOMPATIBLE_PLUGINS=1), byplugin addand byplugin doctor, with a message saying whether to update Quartz or the plugin. Previously the field was never checked (and the old checker read">=5.0.0"as0.0.0). -
6210f28: Prefetching: Quartz fetches pages before their links are followed, so they open at once. Newconfiguration.prefetch:viewport(default): links on screen are fetched while the browser is idle, and links pointed at, focused or touched first.hover: only links pointed at, focused or touched."off".
It works with and without SPA routing. With SPA routing, fetched pages are kept in memory (five minutes, at most 40) and used by both page navigation and popover previews, which no longer download a page the router fetches again. Without it, Quartz asks the browser to prefetch (Speculation Rules, or
<link rel="prefetch">). Nothing is prefetched from links to other sites, files, or pages the site doesn't have, or with Data Saver on or a 2G connection (except links pointed at). Adddata-no-prefetchto a link to exclude it. See https://quartz.jzhao.xyz/features/prefetching -
3103485: Newconfiguration.publishAssets: "referenced"(default"all"): only copy the images, PDFs and other files that published pages link to or embed, so files that only unpublished notes use stay private (#2531, from #2544). References are matched against published (slugified) file names and include<object data>SVG embeds,srcsetand URL-encoded paths. -
f768b1e: Newnpx quartz infocommand: prints the Quartz version (withgit describe, branch and local changes), Node/npm/OS, the config file, built-ins and every plugin with its version, source and compatibility, as a Markdown block to paste into bug reports. The build banner andplugin doctoralso show where the checkout is relative to the last release. -
08c2857: Newlayout.sidebarsoption: how each sidebar handles content taller than the screen.fit(default, unchanged) keeps it one screen tall and components shrink and scroll themselves;scrollkeeps it in view and lets it scroll itself, so nothing is ever out of reach;staticlets it scroll away with the page. Page types can override it (byPageType.<type>.sidebars). Newdocstemplate for documentation sites (npx quartz create --template docs), with both sidebarsstatic. Frames receive the modes as asidebarsprop and put them on sidebar elements asdata-sidebar-mode, which plugins can target in CSS. -
d66968c:npx quartz upgradeshows the release notes of every version between the old and the new Quartz, then runs the new version's checks: it restores plugins, runsplugin doctor(plugin entries that are built in now, plugins that don't support the new version …) and lists plugin updates. Plugin install/restore skip plugins that are built into Quartz now, andplugin doctor --fixalso removes their unused lockfile pins. -
fe6a3ea: Pages that page types render from files (.base,.canvas, Excalidraw drawings) follow the site's publish filters (quartz-community/bases-page#11). The filters see each such page with the frontmatter its page type gives it andfile.data.referencedBy, the published pages that link to it; a page a filter rejects is not emitted and not listed in the content index, sitemap, RSS, folder pages, explorer or search, and can't be embedded. Before, every such file was published regardless of the filters. New transformer hookvirtualPageHtmlPlugins(ctx, content): rehype plugins run on these pages' rendered bodies, which never pass throughhtmlPlugins, so plugins such as encrypted-pages can encrypt them.
Patch Changes
-
ac8cc4b: A plugin that lists a plugin now built into Quartz inquartz.dependencies(@quartz-community/crawl-links,remove-draftorcontent-index) no longer fails the build with "requires crawl-links. Run: npx quartz plugin add …". The built-in (configuration.links,drafts,contentIndex) satisfies the dependency. A warning is shown when that built-in is disabled.npx quartz plugin doctorchecks the same way. -
f8b5638: More build errors caused by content are reported as content problems ("fix the file and build again") instead of "This is likely a Quartz bug": frontmatter that holds a single value or a list instead of properties, Markdown files and assets Quartz can't read (permission denied, a directory named like a note). Plugins can do the same by throwing anErrorwithquartzContent = true(see "Reporting problems in content" in Making plugins). -
e8a192e: Plugins can declarewindow.quartzStaticUrlandwindow.quartzPrefetchincapabilities.requires.globalswithout a false "nothing provides it" warning: Quartz counts both as its own (quartzPrefetchunlessprefetchis off). -
85d2b43: A plugin whose dependency is configured but disabled gets the intended warning ("depends on X which is disabled") instead of failing the build with "requires X. Run: npx quartz plugin add X". -
28fcb64: When a build stops on an error, Quartz stops esbuild before exiting. esbuild runs as a child process that writes to the same terminal; left running, it could print "fatal error: all goroutines are asleep - deadlock!" and a long goroutine dump after Quartz's error message. -
913f9f0: The folder hierarchy used by folder pages and breadcrumbs now includes the pages of page types that render files (.base,.canvas, …): folder pages list them, and a folder that holds only such pages has its own node (#2576). Documented that while a page type'sgenerateruns,ctx.virtualPagesholds the virtual pages of the page types before it. -
5507de3: French: "Vue graphique" and "Table des matières" use French capitalisation (jackyzha0/quartz#2513). -
2ef60c6: Embedding a section by the anchor Obsidian writes for its heading works when that anchor differs from the heading's id:![[note#Colon unspaced]]now embeds## Colon:unspaced. It needs GitHubFlavoredMarkdown 2.1.0 or later, which marks those anchors on the heading. -
f768b1e: Layout fixes: thehas-backlinkscondition works,byPageType.excludematches npm plugin sources, layout overrides inquartz.tsare applied,position: footeris accepted by the config schema, and typos in positions, display values, frames or page types produce a "did you mean" warning instead of silently dropping the component.quartz build --verboseprints a layout report. -
fc86552: Links as in Obsidian 1.15.0:- A Markdown link whose path is not valid percent-encoding (
[x](%zz),[x](a%E2.md)) is an external link. Before, it failed the whole build withURI malformed. - Link paths are NFC-normalized, so a link spelled with a decomposed
éreachescafé.md. - An image of a file the site doesn't have, with no alt text, gets its percent-decoded path as alt (
→ “missing pic.png”), as Obsidian names a missing embed. - A wikilink's
^idno longer names its paragraph (Obsidian Flavored Markdown).
- A Markdown link whose path is not valid percent-encoding (
-
671ca49: Security updates:sharp0.35.5 (GHSA-wq5f-xc86-pv6w),toml5 (prototype pollution and DoS advisories; TOML frontmatter parses the same, and now also accepts plain dates likedate = 2024-01-02) andminimatch11 (GHSA-g3hv-75wg-m249;ignorePatternsmatch the same). The plugin schema'slayout.positionlists exactly the positions Quartz renders.npx quartz tuipoints to the right install command (github:quartz-community/tui). -
b7998bb: Pages no longer scroll sideways on phones: long words (a page title such as "ObsidianFlavoredMarkdown", long inline code) break where they don't fit, and the right sidebar's components (graph, backlinks) wrap below each other when they don't fit side by side. -
b2da325: Security: frontmatter can no longer run code during a build. A note starting with---jsor---javascripthad its frontmatter evaluated as JavaScript (gray-matter's default engine), so building content you didn't write, such as a pull request preview, could run arbitrary code. Quartz now refuses JavaScript frontmatter with an error naming the file. Invalid frontmatter (for example broken YAML) is now reported as a problem in that file instead of as a Quartz bug. -
e41ebf6: Plugin option checks use the option schemas first-party plugins ship. These are declared asquartz.optionSchema, the name Quartz Syncer reads, as a flat map of option to type ({ limit: { type: "number" }, mode: { type: "enum", values: [...] } }). Before, only a JSON Schema inquartz.configSchemawas read, so no first-party plugin's schema was used. A misspelled option, an enum value that isn't allowed, or a value of the wrong type is now a warning. A value of the same type as the plugin's default is always accepted, even where a schema disagrees. -
edb64cd: Tag pages honour the TagPagenumPagesandsortoptions (tag-page 1.0.4); before, they always used the defaults. Plugin client scripts can usewindow.quartzStaticUrlandwindow.quartzPrefetchwith the declarations in@quartz-community/types1.3.1. -
28581e8: On Windows, regenerating.quartz/plugins/index.ts(npm run install-plugins, which also runs before everynpm run build) no longer skips npm plugins with "dist/index.d.ts could not be found", which left exports such asExternalPlugin.Explorerundefined. The package's location was read from afile:URL's pathname (/C:/…), which is not a Windows path. -
ba5a9a6: Option checks know the FolderPageprefixFolders, TagPageprefixTagsand LatexcustomMacrosoptions (folder-page 1.0.4, tag-page 1.0.5, latex 1.0.2 declare them in their manifests). -
e44f2b0:quartz.tsoverrides (ExternalPlugin.Explorer({...})) work for npm plugins and for component plugins (#2565): overrides are registered under the key the loader looks up (the package name for npm plugins), and component constructors re-exported from a plugin's sub-module are wrapped too. The wrapper also returns what the plugin returns, soExternalPlugin.X(...)works both as a statement and as a component in a layout override.quartz plugin …commands no longer drop npm plugins from the generated.quartz/plugins/index.ts; both generators are now one shared module. -
8854aeb: Plugin fixes for Windows: relative aliases (./old,../x) redirect to the right page (alias-redirects 1.0.3), and git dates of notes in folders are read from git instead of the filesystem (created-modified-date 1.0.3). -
f687f58: Plugins use Quartz's own Preact instead of each bundling a copy, so components can use hooks and context across plugins (a component usingpreact/hookswith another plugin's components crashed), and plugin bundles are smaller. The default plugins and the plugin template are updated; a third-party plugin made from the template before this release still bundles its own copy until it updates itstsup.config.ts(see quartz-community/plugin-template). -
2a4ab67: The Roam Research plugin works with ObsidianFlavoredMarkdown on, as in the default config (roam 1.1.0).{{[[TODO]]}},{{[[DONE]]}},[[>]]and{{[[video]]: …}}no longer render as wikilinks, and__italic__is italic instead of bold. -
8eae6a1: Security: plugin commands no longer build shell commands from plugin sources, refs, pinned commits or package names (#2571). git and npm run with argument arrays, refs/commits/URLs/package names are validated (so a value can't be read as an option either), and generated plugin imports are written as escaped string literals. A source such asgithub:owner/repo#main;cmdused to runcmd; it is now rejected as an invalid ref. Also fixes restoring a plugin pinned inquartz.lock.jsonto a commit that is no longer its branch tip (#2559). -
3e4a50a: SPA navigation follows redirects correctly: when a link is redirected (for examplefolder→folder/on static hosts, or an alias page's canonical link), relative links on the new page resolve against where it really is, and the address bar shows that URL. Links on folder pages and parent tag pages reached through slash-less links pointed one level too high. -
7236249: Sites created withnpx quartz createfrom a template (default, blog, docs, obsidian, ttrpg) run GitHubFlavoredMarkdown before ObsidianFlavoredMarkdown (orders 30 and 40), as the default config does and 5.1 requires. The templates still had the old orders (40 and 30). The obsidian and ttrpg templates no longer setparseArrows, which ObsidianFlavoredMarkdown doesn't have. -
f5ef8f7: A local plugin source written with Windows separators (.\my-plugin,..\plugins\my-plugin) is recognised as a local path. Before, it was read as a git or npm source and failed with "Expected github:owner/repo".Pretty links shorten link text the same way on every OS: Windows also cut it at a backslash (
[[a\b]]showedb).