adrai / adrai/flowchart.js

Support symbols in text

Aperta
#136 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
8.7k
Fork
1.2k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.