Skip to content
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

```mermaid 的支持 #94

Closed
turboted opened this issue Apr 9, 2023 · 3 comments
Closed

```mermaid 的支持 #94

turboted opened this issue Apr 9, 2023 · 3 comments
Labels
feature request Suggest an idea for this theme

Comments

@turboted
Copy link

turboted commented Apr 9, 2023

希望可以支持 ```mermaid 的markdown語法

@turboted turboted added the feature request Suggest an idea for this theme label Apr 9, 2023
@elkan1788
Copy link
Contributor

Markdown语法并不支持自定义的语法,现在可以直接使用主题已经支持的 mermaid 特定短代码,参考示例:https://hugo-next.eu.org/demo/mermaid-charts.html

{{< mermaid align="left" >}}

graph TD;

    A-->B;

    A-->C;

    B-->D;

    C-->D;

{{< /mermaid >}}

@turboted
Copy link
Author

可是obsidian 和 typora 都是使用 ```mermaid

@elkan1788
Copy link
Contributor

可是obsidian 和 typora 都是使用 ```mermaid

这两款是编辑器,它们是自己扩展的呢,不是 markdown 的标准语法。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Suggest an idea for this theme
Projects
None yet
Development

No branches or pull requests

2 participants