Vendor update: github.com/yuin/goldmark v1.2.1 (#12377)
Thanks to @yuin fix #12376
This commit is contained in:
parent
1f12dc8e88
commit
7e96268fb0
9 changed files with 233 additions and 39 deletions
2
vendor/github.com/yuin/goldmark/extension/typographer.go
generated
vendored
2
vendor/github.com/yuin/goldmark/extension/typographer.go
generated
vendored
|
@ -223,7 +223,7 @@ func (s *typographerParser) Parse(parent gast.Node, block text.Reader, pc parser
|
|||
if len(line) > 4 {
|
||||
after = util.ToRune(line, 4)
|
||||
}
|
||||
if len(line) == 3 || unicode.IsSpace(after) || unicode.IsPunct(after) {
|
||||
if len(line) == 3 || util.IsSpaceRune(after) || util.IsPunctRune(after) {
|
||||
node := gast.NewString(s.Substitutions[Apostrophe])
|
||||
node.SetCode(true)
|
||||
block.Advance(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue