Open PasseRR opened 12 months ago
I don't think there is an easy solution for that.. code preview is made to preview code, not renders.. 😅
@emersonbottero Thanks for your reply, I tried times, when the code without alias, it works expected.
::: code-group
```mmd
classDiagram
%% 按类型批量添加
class Animal {
+String publicField
#Integer protectedField
~Boolean packageField
-Long privateField
Double staticField$
+publicMethod() String
#protectedMethod() Integer
~packageMethod() Boolean
-privateMethod() Long
+abstractMethod()* void
#staticMethod()$ char
}
%% 单条添加
Animal: List~String~ list
Animal: +getList() List~String~
```
```mermaid
classDiagram
%% 按类型批量添加
class Animal {
+String publicField
#Integer protectedField
~Boolean packageField
-Long privateField
Double staticField$
+publicMethod() String
#protectedMethod() Integer
~packageMethod() Boolean
-privateMethod() Long
+abstractMethod()* void
#staticMethod()$ char
}
%% 单条添加
Animal: List~String~ list
Animal: +getList() List~String~
```
:::
But, when I swap mmd
and mermaid
block order, it not works, Is that just a coincidence?
Btw, I'm just a developer of java, Not familiar with the vue/vite etc.
code
the
preview
not render svg correctly.