mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
add comment to clarify case
This commit is contained in:
parent
a6c48071ed
commit
5e24a62400
1 changed files with 1 additions and 0 deletions
|
|
@ -268,6 +268,7 @@ func (s *typographerParser) Parse(parent gast.Node, block text.Reader, pc parser
|
||||||
return node
|
return node
|
||||||
}
|
}
|
||||||
if s.Substitutions[RightSingleQuote] != nil {
|
if s.Substitutions[RightSingleQuote] != nil {
|
||||||
|
// plural possesives and abbreviations: Smiths', doin'
|
||||||
if len(line) > 1 && unicode.IsSpace(util.ToRune(line, 0)) || unicode.IsPunct(util.ToRune(line, 0)) && (len(line) > 2 && !unicode.IsDigit(util.ToRune(line, 1))) {
|
if len(line) > 1 && unicode.IsSpace(util.ToRune(line, 0)) || unicode.IsPunct(util.ToRune(line, 0)) && (len(line) > 2 && !unicode.IsDigit(util.ToRune(line, 1))) {
|
||||||
node := gast.NewString(s.Substitutions[RightSingleQuote])
|
node := gast.NewString(s.Substitutions[RightSingleQuote])
|
||||||
node.SetCode(true)
|
node.SetCode(true)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue