Skip to content
Permalink
Browse files

Fix edge case where period after a link gets escaped

Before:

```markdown
Lorem [ipsum](http://example.com)\.
```

After:

```markdown
Lorem [ipsum](http://example.com).
```
  • Loading branch information...
tianon authored and dmitshur committed Feb 8, 2019
1 parent 0ad3159 commit 57b6895ddb121d8e5a24f779ba96defa940e73b7
Showing with 1 addition and 1 deletion.
  1. +1 −1 markdown/main.go
@@ -346,7 +346,7 @@ func isNumber(data []byte) bool {
return false
}
}
return true
return len(data) > 0
}

func needsEscaping(text []byte, lastNormalText string) bool {

0 comments on commit 57b6895

Please sign in to comment.
You can’t perform that action at this time.