adrai / adrai/flowchart.js

Support symbols in text

Đang mở
#136 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
8.7k
Fork
1.2k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I recently wanted an operation text to contain a pipe, which seems not to be possible at the moment.
The README says
> Symbols that should possibly not be used in the text: '=>' and '->' and ':>' and '|' and '@>'

I'd love to see some sort of escaping for these symbols, since ascii arrows and pipes are commonly used symbols.

I could imagine two possible ways of escaping: Either place a `\` in front of the symbol, or write the whole text in quotes and match the first and the last quote of a line:

```
op1=>operation: text \| with \-> symbols|flowstate
op2=>operation: "text | with -> symbols"|flowstate
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.