developit / developit/snarkdown

Unexpected parsing with single characters such as *

Aperta
#94 1 commento 3 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
2.4k
Fork
116
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I'm trying to use an asterisk in my string but it makes everything after is _Italic_. I believe this behaviour is unexpectes.

Input:
```
This string has something *important, so I use an asterisk.
```

Expected:
This string has something *important, so I use an asterisk.

Actual:
This string has something *_important, so I use an asterisk._

If this behaviour is expected I then one should resort to escaping the said character, however this also produces an undesirable result.

Input:
```
This string has something \*important, so I use an asterisk.
```

Expected:
This string has something *important, so I use an asterisk.

Actual:
This string has something \\*important, so I use an asterisk.

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.