adrai / adrai/flowchart.js

Support symbols in text

Ouverte
#136 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
8.7k
Forks
1.2k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.