adrai / adrai/flowchart.js

Support symbols in text

Offen
#136 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
8.7k
Forks
1.2k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.