func github.com/yuin/goldmark/util.IsPunct
15 uses
github.com/yuin/goldmark/util (current package)
util.go#L99: return source[i] == '\\' && i < len(source)-1 && IsPunct(source[i+1])
util.go#L310: } else if codeSpanOpener == 0 && c == '\\' && i < len(bs)-1 && IsPunct(bs[i+1]) {
util.go#L570: if i < limit-1 && c == '\\' && IsPunct(source[i+1]) {
util.go#L815: func IsPunct(c byte) bool {
util.go#L821: return int32(r) <= 256 && IsPunct(byte(r)) || unicode.IsPunct(r)
github.com/yuin/goldmark/extension
linkify.go#L237: if len(line) > 0 && util.IsPunct(line[0]) {
typographer.go#L245: if len(line) > 1 && (line[1] == 's' || line[1] == 'm' || line[1] == 't' || line[1] == 'd') && (len(line) < 3 || util.IsPunct(line[2]) || util.IsSpace(line[2])) {
typographer.go#L249: if len(line) > 2 && ((line[1] == 'v' && line[2] == 'e') || (line[1] == 'l' && line[2] == 'l') || (line[1] == 'r' && line[2] == 'e')) && (len(line) < 4 || util.IsPunct(line[3]) || util.IsSpace(line[3])) {
typographer.go#L263: maybeClose := d.CanClose && d.CanOpen && len(line) > 1 && (line[1] == ',' || line[1] == '.' || line[1] == '!' || line[1] == '?') && (len(line) == 2 || (len(line) > 2 && util.IsPunct(line[2]) || util.IsSpace(line[2])))
typographer.go#L283: maybeClose := d.CanClose && d.CanOpen && len(line) > 1 && (line[1] == ',' || line[1] == '.' || line[1] == '!' || line[1] == '?') && (len(line) == 2 || (len(line) > 2 && util.IsPunct(line[2]) || util.IsSpace(line[2])))
github.com/yuin/goldmark/parser
attribute.go#L92: for ; i < len(line) && !util.IsSpace(line[i]) && (!util.IsPunct(line[i]) || line[i] == '_' || line[i] == '-'); i++ {
link.go#L297: if c == '\\' && i < len(line)-1 && util.IsPunct(line[i+1]) {
link.go#L312: if c == '\\' && i < len(line)-1 && util.IsPunct(line[i+1]) {
parser.go#L1157: isPunct := util.IsPunct(c)
github.com/yuin/goldmark/renderer/html
html.go#L715: if util.IsPunct(c) {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |