We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d673cb commit 1ec540aCopy full SHA for 1ec540a
apps/web/src/utils/index.ts
@@ -330,4 +330,11 @@ export async function processClipboardContent(primaryColor: string) {
330
grand.innerHTML = ``
331
grand.appendChild(section)
332
})
333
+
334
+ // fix: mermaid 部分文本颜色被 stroke 覆盖
335
+ clipboardDiv.innerHTML = clipboardDiv.innerHTML
336
+ .replace(
337
+ /<tspan([^>]*)>/g,
338
+ `<tspan$1 style="fill: #333333 !important; color: #333333 !important; stroke: none !important;">`,
339
+ )
340
}
0 commit comments