-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Mermaid's Markdown rendering #11670
Comments
确实有这个问题,请测试下我这个 sequenceDiagram
autonumber
participant 1 as $$\alpha$$
participant 2 as $$\beta$$
1->>2: Solve: $$\sqrt{2+2}$$
2-->>1: Answer: $$2$$
Note right of 2: $$\sqrt{2+2}=\sqrt{4}=2$$
|
还有问题的话,导出 .sy 文件上传一下。 |
请查收附件和截图。这个mermaid图里α和β会显示不全。之前zettlr和Joplin也有这种问题,不过Joplin 3.1.1已经修复了。 |
不过我觉得思源这个最大的硬伤还是导出图片超级慢,并且不支持svg,对于内容多一点的脑图、流程图,png那分辨率根本没法看 |
这些可以使用导出 html |
讲真的,思源的导入导出功能都隐藏的好深,找到一圈没找到,更加没有找到导出html
在 2024-08-12 10:37:42,V ***@***.***> 写道:
这些可以使用导出 html
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
.我找到导出html了,比png强多了
在 2024-08-12 10:37:42,V ***@***.***> 写道:
这些可以使用导出 html
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
下个版本再看看 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mermaid 渲染 Markdown 偏移问题
Is there an existing issue for this?
Can the issue be reproduced with the default theme (daylight/midnight)?
Could the issue be due to extensions?
Describe the problem
在Mermaid中使用Markdown时,渲染出的Markdown文本会出现偏移,具体来说,是在Mermaid的流程图中,节点使用Markdown文本,如:
渲染结果为:

Expected result
上例中的渲染结果应该为:

Screenshot or screen recording presentation
No response
Version environment
Log file
不需要
More information
经查,是由以下CSS规则导致,该规则位于
siyuan\app\src\assets\scss\component\_typography.scss
文件中(第25行):原因是在Mermaid中使用Markdown文本时,渲染生成的元素为
<p>
而非<span>
.目前临时的修复方案是在代码片段中添加如下代码片段:
The text was updated successfully, but these errors were encountered: