jerryc127 / hexo-theme-butterfly

🦋 A Hexo Theme: Butterfly
https://butterfly.js.org
Apache License 2.0
7.23k stars 1.3k forks source link

mermaid插件启用不能编译 #817

Closed davischeng closed 2 years ago

davischeng commented 2 years ago

启用以下插件后无法编译 hexo-filter-sequence hexo-filter-kroki hexo-filter-sequence

加以下任一代码:

Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks!

或 ​```actdiag actdiag { write -> convert -> image

lane user { label = "User" write [label = "Writing text"]; image [label = "Get diagram image"]; } lane Kroki { convert [label = "Convert text to image"]; } }


或
这个是你教程中的示例,加上,有时可以有时不可以编译。另外我用的是香港线路。

{% mermaid %}
pie
    title Key elements in Product X
    "Calcium" : 42.96
    "Potassium" : 50.05
    "Magnesium" : 10.01
    "Iron" :  5
{% endmermaid %}

## I want to create a Bug report <!-- 我想要建立一個 Bug report --> 

<!-- Check all with "x" especially FAQ & Documentation!! (使用 "x" 選擇) -->
<!-- 請確認是否都已經翻閲過如下的資料, 尤其是安裝文件!! -->
- [] Yes, I have read [Hexo Docs page](https://hexo.io/docs/), especially [Templates](https://hexo.io/docs/templates.html), [Variables](https://hexo.io/docs/variables.html), [Helpers](https://hexo.io/docs/helpers.html) and [Troubleshooting](https://hexo.io/docs/troubleshooting.html).
- [] Yes, I have read [Butterfly Documentation](https://butterfly.js.org/posts/21cfbf15/).
- [] And yes, I already searched for current [issues](https://github.com/jerryc127/hexo-theme-butterfly/issues?utf8=%E2%9C%93&q=is%3Aissue) and this did not help me.

## Butterfly Information

<!-- Butterfly的版本 -->
<!-- 檢視主題的package.json -->
**Butterfly Version:**

<!-- Windows/macOS/Linux/Android/iOS -->
**Platform:**

<!-- Chrome/Safari/FireFox/.. -->
**Browser:**

## Expected behavior <!-- (預期行為) -->

## Actual behavior <!-- (實際行為) -->

## Steps to reproduce the behavior <!-- (重現步驟) -->
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

<!-- If applicable, add screenshots to help explain your problem -->
<!-- 請儘量提供截圖來定位問題 -->
## Screenshots <!-- (截圖) -->
![image](https://user-images.githubusercontent.com/10173324/156732561-0cddc860-b34f-446f-9610-8e273ca77300.png)
<!-- Provide your website to find the issues -->
## Website

## Describe the bug
jerryc127 commented 2 years ago

你为什么不去插件那反馈

还有你这反馈得不明不白

你要使用插件 就不要使用开启主题 mermaid

估计你那些插件应该也是使用 mermaid 吧

davischeng commented 2 years ago

补充截图,hexo g hexo d hexo s都不可用 image

jerryc127 commented 2 years ago

不清楚你是什么问题

建议你把这几个插件卸载了看看 一个个排查

davischeng commented 2 years ago

只文中使用以下代码就无法编译: {% mermaid %} pie title Key elements in Product X "Calcium" : 42.96 "Potassium" : 50.05 "Magnesium" : 10.01 "Iron" : 5 {% endmermaid %}

jerryc127 commented 2 years ago

这问题顶多报错,不会导致连生成都没有生成

建议重装主题和 hexo

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.