developit / developit/snarkdown

Unexpected parsing with single characters such as *

Open
#94 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.4k
Forks
116
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.