mjbvz / vscode-markdown-mermaid

Adds Mermaid diagram and flowchart support to VS Code's builtin markdown preview
https://marketplace.visualstudio.com/items?itemName=bierner.markdown-mermaid
MIT License
640 stars 115 forks source link

vscode can not render the mermaid view #120

Closed heartacker closed 2 years ago

heartacker commented 2 years ago

image

but I can see it in another extension ( Markdown Preview Enhanced) image

名称: Markdown Preview Enhanced ID: shd101wyy.markdown-preview-enhanced 说明: Markdown Preview Enhanced ported to vscode 版本: 0.6.1 发布者: Yiyi Wang VS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=shd101wyy.markdown-preview-enhanced

mjbvz commented 2 years ago

Please always share the text of the code along with screenshots

heartacker commented 2 years ago

sorry

and the code

```mermaid
flowchart TD
subgraph PowerOnReset
   subgraph RESET TRAPPING
        wait((48CYCYLE))
        TRAP_RDY(TRAPPING 准备)-->RST(释放)-->DONETRAPPING(TRAP 完毕)
   end
   PNO((POWER ON)) ==>|复位一直拉低|TRAP_RDY
end

   subgraph CALIB EN
        wcaliben(写入校准使能)-.->RRST(复位)
   end
   DONETRAPPING -.-> wcaliben
   DONETRAPPING==>SW_CLK

   subgraph CLOCK_SWITCH
        SW_CLK(写寄存器切换时钟)
   end

   RRST==>SW_CLK
   SW_CLK(写入校准寄存器) x--x TEST

   MAIN:
    subgraph PowerOnReset_
    A((power on)) ==> T(RESET TRAPPING)
    end
    T -.-> C(CALIB EN)
    C -..->T
    C==>S(CLOCK_SWITCH) x--x TS(TEST)
    T---->S
heartacker commented 2 years ago

enable this will cause the issue https://marketplace.visualstudio.com/items?itemName=mathpix.vscode-mathpix-markdown

mjbvz commented 2 years ago

So the issue only happens when that extension is installed? If so, please file an issue against that extension