Bump direct dependencies, catalog pins, and security overrides to the latest
versions the toolchain accepts, and refresh the lockfile. Retarget the
@codemirror/view patch to 6.44.2 and the Mermaid patch to 12.4.0.
Keep Prettier at 2.8.8 and TypeScript at 6.0.3. @typescript-eslint still
requires typescript < 6.1.0. Follow Vite 8.4's dev.sourcemap.css option.
Bump direct dependencies, catalog pins, and security overrides to the latest
versions the toolchain accepts, and refresh the lockfile. Retarget the
@codemirror/view patch to 6.44.0 (MeasureRequest export and macOS Alt+Shift).
Keep Prettier at 2.8.8 and TypeScript at 6.0.3 (@typescript-eslint still requires
typescript < 6.1.0). Leave the Mermaid patch unchanged.
Bump direct dependencies, catalog pins, and security overrides to the latest
versions the toolchain accepts, and refresh the lockfile. Move pnpm to 12.23.0
and wrangler to 4.167.0 now that workerd postinstall matches the published binary.
Keep Prettier at 2.8.8 and TypeScript at 6.0.3 (@typescript-eslint still requires
typescript < 6.1.0). Leave CodeMirror and Mermaid patches unchanged.
Bump direct dependencies, catalog pins, and security overrides to the latest versions the toolchain accepts, and refresh the lockfile. Move pnpm to 12.21.0.
Keep Prettier at 2.8.8 and TypeScript at 6.0.3. Pin wrangler at 4.163.0 because 4.164.0 ships a workerd binary whose postinstall rejects itself.
Use the shared logout string so zh-CN, zh-TW, and ja-JP no longer show an English button, and describe a closed account as closed in Japanese.
Co-authored-by: Libin YANG <contact@yanglibin.info>
Stop pasted headings, code, and tables from overflowing narrow screens, and drop line-height 0 from nodes that still contain text.
WeChat and jsdom report line-height 0 without a px suffix, so the previous pattern never rewrote those nodes.
Code blocks already have an 8px side margin. Forcing width 100% laid that margin outside the column, so every code paragraph overflowed.
Wrapping those blocks removed horizontal scroll. Exempt them from the width check, and turn quotes into sections so WeChat does not add its own gray bar.
Bump direct dependencies to the latest versions the toolchain accepts, including entities 9 and jsdom 31. Keep Prettier at 2.8.8 and TypeScript at 6.0.3.
Bump compatible releases, including wrangler 4.151.2, CodeMirror view 6.43.15, and typescript-eslint 8.72.0. Retarget the CodeMirror view patch and raise undici to 8.12.3 now that the HTTP/2 content-encoding regression is fixed.
Raise flowchart wrappingWidth to 300 so a typical bilingual line fits, and patch Mermaid so wider html labels wrap on fractional device pixel ratios instead of being clipped.
Closes#1989
Upgrade pnpm to 12.6.0 and refresh direct packages, including VueUse 15,
Mermaid 12, and juice 12.2.0. Keep Prettier 2.8.8, TypeScript 6.0.3, and
the wrangler 4.134.0 preview-deploy pin.
Clipboard screenshots without a filename were rejected as invalid images.
Cancelling GitHub login from md-cli left a JSON error page, and drafts
could be lost because IndexedDB writes may not finish on unload.
Closes#1969Closes#1970
Refresh catalog entries (@cloudflare/workers-types, wrangler, zod), the
tinyexec override, and direct deps across web, vscode, and md-cli, then
refresh transitive deps via `pnpm update -r` and `pnpm dedupe`.
Keep typescript at ~6.0.3 because @typescript-eslint 8.68.0 declares a
`typescript >=4.8.4 <6.1.0` peer range, so TS 7 would break lint.
Also drop the stale front-matter patch entry from AGENTS.md; that patch
was removed when front-matter was replaced.
The same link colour (#576b95) was copy-pasted into all three built-in themes, and the blockquote background was only reachable through a shell-injected token, so both had to be overridden with custom CSS.
Link colour becomes an always-emitted --md-link-color, defaulting to the blue every theme already used. The theme-colour preset is stored as a literal var(--md-primary-color) so links keep tracking the primary colour rather than freezing its value at pick time.
Blockquote background cannot use the same shape: only the default theme has a background, while grace and simple are deliberately background-free. Declaring the variable unconditionally would give them a grey box they never had, so it is only declared when the user picks a non-default value and each theme keeps its own value as the var() fallback.
That relies on processCSS resolving a var() whose fallback is another var(), and on it leaving the unresolvable shell token intact. Both behaviours are now covered by tests, along with nested color-mix resolution.
Line height sat hard-coded as 1.75 in base.css and every vertical block margin was a literal in the theme CSS, so tightening or loosening an article meant hand-writing custom CSS across a dozen selectors.
Line height becomes --md-line-height. Block spacing becomes --md-block-spacing, a unitless multiplier applied to the margins each theme already defines rather than one flat value: a single length would collapse the theme's rhythm, where an h2 deliberately sits further from the text than a paragraph. Themes keep their proportions while the whole scale moves together.
The calc() indirection is safe for the WeChat paste because processCSS already flattens var() and calc() before juice inlines the styles; its multiplication branch handles a length times a unitless operand. cssVariables.test.ts pins that behaviour, which had no coverage before.
Both fields are optional end to end, so settings persisted before this change keep rendering identically and existing generateCSSVariables callers (VSCode preview, theme export) needed no signature change.
A single full-height capture hits the browser canvas size limit on long
articles. Split the export into several PNGs on block boundaries so
paragraphs, headings, and code blocks are never cut in half, and package
multiple segments into a ZIP.
Adds an inline extension turning 🚀 into an emoji character, so documents written on GitHub, Obsidian or Typora keep rendering the same glyphs instead of leaking raw shortcodes into the article.
The shortcode table is bundled in-repo rather than pulled from a dependency. The established emoji packages either carry several transitive dependencies or have negligible download counts, neither of which suits a widely used editor. The table is curated (515 entries) instead of the full ~1900-entry Unicode set, which would otherwise land in the deferred renderer chunk for a feature most articles use a handful of times.
Only names present in the table are consumed, so incidental colon pairs like 'ratio 3:4:5' and unknown names stay literal rather than disappearing. Emoji are emitted as bare characters with no wrapper element, leaving nothing for WeChat's sanitizer to strip and no theme CSS to keep in sync.
Superscript had no syntax at all, so ^2^ leaked through as literal text. Adds a markup_superscript inline extension rendering semantic <sup>, which degrades correctly even where the theme CSS is missing.
Unlike the sibling markup delimiters, superscript is meant to sit directly after a word char (x^2^), so it opts out of the shared word-boundary filtering and instead requires whitespace-free content. That keeps prose like 'a ^ b' and dangling carets like '2^10' literal. Ruby's [text]^(annotation) form is unaffected: its tokenizer is registered later and therefore runs first.
Subscript is deliberately left out because it would need the same single ~ delimiter already taken by the wavy-line extension.
Also gives <del> a theme class so strikethrough colour is themeable instead of relying on the browser default.
Upgrade catalog workers-types, marked, and isomorphic-dompurify. Treat empty YAML front matter as an empty mapping for js-yaml 5. Keep prettier 2.8.8 and typescript ~6.0.3.