-
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't allow underscores and asterisks as end chars
This way, we match URLs within markdown emphasis like *this* or _this_ without the trailing character. It's highly unlikely that URLs would genuinely want to end in either of those characters. Asterisks are reserved, so they shouldn't be in the path to begin with. And underscores are most common in the middle of the path, and are already common to style plaintext at the start or end of URLs. Still allow them in the middle of URLs, because there's no reason not to. Fixes #29.
- Loading branch information
Showing
2 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters