Commit Graph
613 Commits
Author SHA1 Message Date
Libin YANG fa341b438b chore(deps): upgrade project dependencies (#2037)
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.
2026-11-28 22:17:53 +08:00
Doocs Bot 4aa382bb47 chore: release npm packages (#2036) 2026-11-27 21:18:06 +08:00
Libin YANG 5867b7fb17 feat(dsh): publish the harness plugin as @doocs/dsh-md (#2035) 2026-11-27 18:13:19 +08:00
souvc 80b43d495b feat(dsh): add DeepSeek Harness plugin 2026-11-26 19:35:31 +08:00
Libin YANG ef12f358a8 chore(deps): upgrade project dependencies (#2033)
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.
2026-11-25 22:09:00 +08:00
Cursor Agent 38107095bb chore(deps): upgrade project dependencies
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.
2026-11-24 21:33:02 +08:00
Gavin 51fc97cb84 fix(web): correct match positions in partial-line selections (#2029) 2026-11-23 20:47:40 +08:00
Libin YANG 2e668391a4 chore(deps): upgrade project dependencies (#2027)
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.
2026-11-18 08:36:41 +08:00
Libin YANG b80bbc48a4 feat(editor): polish find, command palette, and the document switcher (#2025) 2026-11-17 08:48:58 +08:00
NeoandLibin YANG 388c3ba231 feat(web): add logout to the publish dialog (#2026)
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>
2026-11-16 14:05:04 +08:00
Libin YANG ef72ea2d9d chore(deps): upgrade project dependencies (#2024)
Bump direct dependencies to the latest versions the toolchain accepts, and refresh the lockfile. Keep Prettier at 2.8.8 and TypeScript at 6.0.3.
2026-11-14 09:41:15 +08:00
Libin YANG 83d91dbccf fix(web): keep copied articles inside WeChat structure checks (#2022)
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.
2026-11-14 09:20:17 +08:00
Gavin efc1e84fb7 fix(web): omit commented headings from outline (#2023) 2026-11-13 20:05:44 +08:00
Neo 3d5cf091c3 feat(web): add Halo to the publish dialog (#2021) 2026-11-13 08:47:49 +08:00
Neo f80d526ea4 feat(web): connect Substack from the publish panel (#2020) 2026-11-13 08:40:42 +08:00
Libin YANG 7c56dd71ea fix(web): align dialog actions and footer spacing (#2019)
Use the same cancel-then-primary order, outline dismiss actions, and destructive delete confirms, and space stacked dialog buttons on narrow screens.
2026-11-13 08:39:53 +08:00
Libin YANG 6869de7761 fix(web): correct publish dialog draft and login state (#2018)
Fill the title, summary, and cover from the article, and keep the login link when the extension only reports the platform name.
2026-11-12 20:17:16 +08:00
Libin YANG 08a382086a chore(deps): upgrade project dependencies (#2017)
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.
2026-11-12 19:54:33 +08:00
Libin YANG cb2e421764 fix(deps): patch open dependency security alerts (#2016) 2026-11-11 14:50:02 +08:00
Libin YANG 31896a825f chore(deps): upgrade project dependencies (#2014) 2026-11-11 08:32:37 +08:00
Neo 8dd0e6c2a0 feat(web): show RedNote in the COSE publish dialog (#2011) 2026-11-09 08:44:01 +08:00
Neo b156879f71 feat(web): add Xueqiu to the COSE publish dialog (#2010) 2026-11-09 07:33:41 +08:00
Neo 4d2585f616 feat(web): connect WordPress in the COSE publish dialog (#2009) 2026-11-09 07:32:24 +08:00
Neo cb9fb1520b feat: add inline DEV.to setup to the publish dialog (#2008) 2026-11-08 21:22:36 +08:00
Libin YANG 0bbfe56b67 chore(deps): upgrade project dependencies (#1996)
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.
2026-10-21 22:37:41 +08:00
Libin YANG f8d9126823 chore(deps): upgrade project dependencies (#1995)
Bump compatible releases, including pnpm 12.14.0 and wrangler 4.151.1, and retarget the Mermaid flowchart label patch to 12.2.0.
2026-10-17 10:12:56 +08:00
Libin YANG 1bdad48d20 fix(mermaid): stop flowchart labels from clipping (#1991)
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
2026-10-12 11:27:37 +08:00
Libin YANG d9132ab5a1 chore(deps): upgrade project dependencies (#1985) 2026-10-09 09:50:23 +08:00
dependabot[bot] a7c17fc4cd build(deps): bump the minor-and-patch group across 1 directory with 2 updates (#1980)
Bumps the minor-and-patch group with 2 updates in the / directory: [@cloudflare/vite-plugin](https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/vite-plugin-cloudflare) and [wrangler](https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler).


Updates `@cloudflare/vite-plugin` from 1.55.0 to 1.60.2
- [Release notes](https://github.com/cloudflare/workers-sdk/releases)
- [Changelog](https://github.com/cloudflare/workers-sdk/blob/main/packages/vite-plugin-cloudflare/CHANGELOG.md)
- [Commits](https://github.com/cloudflare/workers-sdk/commits/@cloudflare/vite-plugin@1.60.2/packages/vite-plugin-cloudflare)

Updates `wrangler` from 4.134.0 to 4.141.0
- [Release notes](https://github.com/cloudflare/workers-sdk/releases)
- [Commits](https://github.com/cloudflare/workers-sdk/commits/wrangler@4.141.0/packages/wrangler)

---
updated-dependencies:
- dependency-name: "@cloudflare/vite-plugin"
  dependency-version: 1.60.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: wrangler
  dependency-version: 4.141.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-29 17:50:56 +08:00
Libin YANG 9bae922611 chore(deps): bump dependencies to latest compatible versions (#1978)
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.
2026-09-29 17:37:06 +08:00
Libin YANG 2cd2b354e6 chore(deps): bump pnpm, wrangler, CodeMirror, and related packages (#1972) 2026-09-22 19:54:26 +08:00
Libin YANG b732988fbf fix: persist drafts across GitHub login and accept pasted images (#1971)
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 #1969
Closes #1970
2026-09-22 19:22:47 +08:00
Libin YANG cbcd3756e5 chore(deps): bump wrangler, vue, AWS SDK, and related packages (#1966)
Bump catalog wrangler and workers-types, plus web/vue toolchain
patch/minor updates. Intentionally leave prettier 2.8.8, typescript 6,
mermaid 11, vueuse 14, and pnpm 11 unchanged.
2026-09-18 11:42:30 +08:00
Libin YANG 8770fde1d2 chore(deps): bump wrangler, CodeMirror, vsce, and related packages (#1964) 2026-09-16 19:27:09 +08:00
Libin YANG a988db7bd2 chore(deps): bump pnpm, wrangler, lucide, and related packages (#1961)
Leave prettier, TypeScript, and mermaid on pinned majors.
2026-09-14 20:11:40 +08:00
Libin YANG f0d8c6170e chore(deps): bump vite, wrangler, AWS SDK, and related packages (#1960)
Raise the confbox override to 0.3.1 so pkg-types can import confbox/json. Leave prettier, TypeScript, and mermaid on pinned majors.
2026-09-12 16:39:30 +08:00
Libin YANG 0fdec07364 docs: align contributing guides and agent PR workflow (#1956)
Add a GitHub PR template, sync CONTRIBUTING/Copilot/AGENTS, make
commit and PR skills shell-neutral, and add share/marketplace
route tests.
2026-09-10 19:35:56 +08:00
RandLibin YANG 0f95bb6395 fix(editor): gate SidebarAIToolbar by showAIToolbox preference (#1954)
Co-authored-by: Libin YANG <contact@yanglibin.info>
2026-09-10 19:08:32 +08:00
Libin YANG 75f09a0b44 perf(emoji): speed up search, panel, upload, and renderer scans (#1952)
Add pinyin/alias search, window the emoji grid, parallelize uploads, and bound emoji start() scans so long documents skip URL/time colons.
2026-09-10 11:05:58 +08:00
Libin YANG e14b55645c chore(deps): bump wrangler, vitest, isomorphic-dompurify, and related packages (#1951) 2026-09-10 10:22:35 +08:00
RandLibin YANG 9ec3f68e6d feat(emoji): add cloud sticker packs and an <Emoji> inline component (#1949)
Co-authored-by: Libin YANG <contact@yanglibin.info>
2026-09-10 10:05:36 +08:00
Libin YANG a9d3da04cc chore(deps): bump wrangler, CodeMirror, AWS SDK, and related packages (#1945) 2026-09-05 08:57:08 +08:00
Libin YANG 62cd665b16 chore(deps): bump pnpm, CodeMirror, AWS SDK, and related packages (#1943)
Refresh catalog, security overrides, and CI pnpm pins. Rebase the @codemirror/view patch onto 6.43.10.
2026-09-01 11:42:55 +08:00
Libin YANG 7622b816db chore(deps): bump wrangler, zod, and related packages (#1941)
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.
2026-08-29 15:42:26 +08:00
Libin YANG 9227e937cf feat(theme): make link color and blockquote background configurable (#1939)
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.
2026-08-29 08:51:42 +08:00
Libin YANG 5adb849ac7 feat(theme): make line height and block spacing configurable (#1938)
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.
2026-08-29 08:43:55 +08:00
Libin YANG d5a2c4be76 feat(export): add segmented long-image PNG export (#1940)
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.
2026-08-29 08:34:48 +08:00
Libin YANG 83bf5583f5 feat(core): support GitHub-style emoji shortcodes (#1937)
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.
2026-08-29 08:27:51 +08:00
Libin YANG 91256df56a feat(core): add superscript syntax and theme strikethrough (#1936)
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.
2026-08-29 08:14:00 +08:00
Libin YANG 1c2c2f4139 chore(deps): bump pnpm, wrangler, vue, and related packages (#1934)
Keep Prettier at 2.8.8 and TypeScript at 6.0.3 because vue-tsc still requires the TS 6 compiler API.
2026-08-28 10:19:17 +08:00