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.
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.
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.
baseUrl is deprecated in TypeScript 6.0 and scheduled for removal in 7.0. Since TS 4.1, path aliases resolve relative to the tsconfig directory, so the option is redundant and can be dropped without changing resolution behavior.
Move cross-package toolchain versions into a workspace catalog, declare
CodeMirror where it is imported, unify typescript-eslint via overrides,
and run pnpm dedupe to shrink the lockfile.
Add debounce+max-wait preview scheduling and fingerprint skip in renderStore.
Extract scroll-sync/post-tree helpers with tests; cover API origin/sanitize.
Extend type-check to vscode/mcp; split Footer and CustomComponent form panels.
* Upgrade @codemirror/view, Cloudflare tooling, AWS SDK, Vite, Wrangler,
webpack, and related packages. Regenerate the CodeMirror patch for 6.43.5.
Keep prettier pinned at 2.8.8 and mathjax at 3.x.
* Downgrade @cloudflare/workers-types from v5 to 4.20260702.1 to satisfy
wrangler@4.107.0 peer requirement (^4.20260701.1) and clear pnpm peer warnings.
Add theorem-family alert variants (theorem, lemma, corollary, proposition,
definition, axiom, postulate, assumption, proof, remark) with dedicated
theme colors and icons.
Allow an optional custom title after the type in both blockquote
(> [!TYPE] title) and container (::: type title) syntax, and render any
unknown name (including non-ASCII) with a neutral fallback style using the
name as the title. Callout bodies keep full Markdown and KaTeX support.
Update MCP explain_extensions docs and the example markdown accordingly.
Add font, legend, heading styles, code block theme, and custom CSS parameters to render_markdown for parity with the web editor. Extract config-options and render-article modules, add style discovery tools, fix double container wrapping, and ship .cursor/mcp.json for Cursor IDE integration.
Add typed custom tokens and renderer adapters compatible with marked's
Tokens.Generic API. Introduce FrontMatterData and sync AGENTS.md plus
mcp-server README with current implementation.
Co-authored-by: Cursor <cursoragent@cursor.com>
- Switch mcp.json and package.json scripts to use run.mjs as entrypoint so DOM/MathJax polyfills are set up before tsx loads the TS source
- Fix polyfill.mjs: add missing window.MathJax reference and remove leftover writeSync debug output
- Pin jsdom>undici to ^7.25.0 via pnpm-workspace.yaml overrides to prevent pnpm from resolving it to undici@8 which dropped lib/handler/wrap-handler.js, causing the server to crash on startup
- Add primaryColor parameter to render_markdown and new list_colors tool
- Inline colorOptions/themeOptions to avoid CSS ?raw import issues
- Add run.mjs wrapper and polyfill scripts to fix MathJax/loading timing
- Improve type safety, error handling, and code review feedback
Co-authored-by: Bing <binner.chen@qq.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>