Skip to content

Commit 263ea40

Browse files
committed
fix: #222 修复 Mermaid 超链接锚文本显示不完整问题 | Fixed the issue of incomplete display of Mermaid hyperlink anchor text.
1 parent 6564901 commit 263ea40

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- 调整悬浮预览面板钉住按钮样式 | Adjust the style of the pin button in the floating preview panel.
66
- 调整面板边框样式 | Adjust the style of the panel border.
77
- 调整面板尺寸调节手柄样式 | Adjust the style of the panel size adjustment handle.
8+
- [#222](https://github.com/Zuoqiu-Yingyi/siyuan-theme-dark-plus/issues/222) 修复 Mermaid 超链接锚文本显示不完整问题 | Fixed the issue of incomplete display of Mermaid hyperlink anchor text.
89

910
## v2.0.1/2024-05-02
1011

style/module/span-link.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,7 @@
105105
.b3-typography a[href^="pdf-outline:"]::before {
106106
display: none;
107107
}
108+
.protyle-wysiwyg .render-node .graphics-document a::before,
109+
.b3-typography .render-node .graphics-document a::before {
110+
display: none;
111+
}

style/module/span-link.less

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,17 @@
9191
}
9292
}
9393
}
94+
95+
// 渲染节点
96+
.render-node {
97+
// FIX: https://github.com/Zuoqiu-Yingyi/siyuan-theme-dark-plus/issues/222
98+
// 移除 Mermaid 图中链接的图标, 避免导致超链接锚文本显示不完整
99+
.graphics-document {
100+
a {
101+
&::before {
102+
display: none;
103+
}
104+
}
105+
}
106+
}
94107
}

0 commit comments

Comments
 (0)