-
Notifications
You must be signed in to change notification settings - Fork 536
Open
Labels
🐞bugSomething isn't workingSomething isn't working🚀enhancementNew feature or requestNew feature or request
Description
Prerequisites
-
There isn't an existing issue that reports the same bug to avoid duplicates.
-
The provided information offers a minimal reproducible example of the bug, (Why create a Minimal).
-
For Q&A, please open a GitHub Discussion instead.
Version
latest
Reproduction Link
No response
Describe the Bug
我在 VS Code 预览里遇到两个渲染问题:
- Cherry 的图表表格语法(如
:line:及其他 Cherry 图表类型)无法渲染 - Mermaid 可以渲染,但颜色明显不对
目前这只是现象层面的反馈/推测(未确认根因),但控制台日志里有两类信息可能相关:Webview 的 CSP 样式拦截,以及偶发的扩展运行时错误。
环境
- VS Code 桌面版(macOS)
- 扩展版本:
cherrymarkdownpublisher.cherry-markdown0.1.1
最小 Cherry 复现(我这边不渲染)
| :line:{"title": "Line Chart"} | H1 | H2 | H3 |
| ------ | ------ | ------ | ------ |
| Sample1 | 11 | 11 | 4 |
| Sample2 | 112 | 111 | 22 |实际结果
- Cherry 图表示例显示为原始表格/文本,未生成图表。
- Mermaid 图可显示,但配色与预期不一致。
期望结果
- Cherry 图表语法可正常渲染。
- Mermaid 颜色与预期主题/默认样式一致。
日志片段
cherry-markdown.min.js:1 Applying inline style violates the following Content Security Policy directive
'style-src 'self' https://*.vscode-cdn.net' ... The action has been blocked.
console.ts:139 [Extension Host] rejected promise not handled within 1 second:
Error: Illegal argument: line must be non-negative
mainThreadExtensionService.ts:79
[cherryMarkdownPublisher.cherry-markdown] Illegal argument: line must be non-negative
.../.vscode/extensions/cherrymarkdownpublisher.cherry-markdown-0.1.1/dist/extension.js:2:26945
System Information
Contributing
None
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🐞bugSomething isn't workingSomething isn't working🚀enhancementNew feature or requestNew feature or request