markdown is base on remarkable engine diagrams is based on pintora
You can draw diagram by annotating pintora
for the code fence
```pintora
sequenceDiagram
State1-->>State2: action1
@note over State1,State2: some note
@note right of State2
multiline
note
@end_note
```