Skip to content

fix(dsh): inline WeChat styles in the render tool - #2042

Merged
yanglbme merged 4 commits into
mainfrom
fix/dsh-wechat-paste
Nov 29, 2026
Merged

yanglbme merged 4 commits into
mainfrom
fix/dsh-wechat-paste

Conversation

@yanglbme

@yanglbme yanglbme commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Summary

This is the @doocs/dsh-md 0.1.1 release. The included changeset is a patch, so merging the follow-up “chore: release npm packages” pull request publishes 0.1.1. The version in apps/dsh/package.json stays 0.1.0 until that release pull request.

md_wechat_render now follows the editor Copy button: theme CSS is inlined, and formulas, Mermaid, PlantUML, and infographics are rendered to SVG. Code blocks default to the github-dark highlight theme. Plugin detail pages follow the DeepSeek Harness language.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor
  • Documentation / workflow update
  • Test

Test Procedure

  • pnpm --dir apps/dsh run type-check
  • Render the bundled example article and check flowchart, pie, PlantUML, and infographic output in a browser
  • Plugin bundle smoke check during node apps/dsh/scripts/install.mjs

Pre-flight Checklist

  • Self-review of the diff
  • pnpm run lint passes
  • Tests added or updated when behavior changes
  • User-facing copy updated in zh-CN, zh-TW, en-US, ja-JP, es-ES, fr-FR, de-DE, ru-RU, and pt-BR when UI text changes
  • Docs updated when public API or contributor workflow changes
Copilot AI balanced review requested due to automatic review settings November 29, 2026 09:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

🚀 Cloudflare Workers Preview has been successfully deployed!

Preview URL: https://md-pr-2042.doocs.workers.dev

Built with commit 24226eb

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

🚀 Surge Preview has been successfully deployed!

Preview URL: https://doocs-md-preview-pr-2042.surge.sh

Built with commit 24226eb

md_wechat_render returned a style block that WeChat drops on paste. Run the same juice and structure pass as the editor Copy button, and record the patch release.

Co-authored-by: Cursor <cursoragent@cursor.com>
@yanglbme
yanglbme force-pushed the fix/dsh-wechat-paste branch from a10f2d4 to efd0975 Compare November 29, 2026 12:29
yanglbme and others added 3 commits November 29, 2026 21:36
Ship formulas, Mermaid, PlantUML, and infographics as SVG, and default code blocks to github-dark so the patch release is 0.1.1.

Co-authored-by: Cursor <cursoragent@cursor.com>
The web type-check target does not include String.replaceAll, so preview builds failed.

Co-authored-by: Cursor <cursoragent@cursor.com>
A shared module declaration replaced DOMPurify's real named exports and broke the VS Code type-check.

Co-authored-by: Cursor <cursoragent@cursor.com>
@yanglbme
yanglbme merged commit e8e60ad into main Nov 29, 2026
5 checks passed
@yanglbme
yanglbme deleted the fix/dsh-wechat-paste branch November 29, 2026 13:44
@github-actions

Copy link
Copy Markdown

🗑️ Cloudflare Workers preview deployment has been cleaned up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants