github.com/yuin/goldmark/parser.Delimiter.CanClose (field)
11 uses
github.com/yuin/goldmark/parser (current package)
delimiter.go#L38: CanClose bool
delimiter.go#L88: if (d.CanClose || closer.CanOpen) && (d.OriginalLength+closer.OriginalLength)%3 == 0 && closer.OriginalLength%3 != 0 {
delimiter.go#L102: CanClose: canClose,
delimiter.go#L184: if !closer.CanClose {
github.com/yuin/goldmark/extension
typographer.go#L221: if d.CanOpen && !d.CanClose && len(line) > 3 && util.IsNumeric(line[1]) && util.IsNumeric(line[2]) && line[3] == 's' {
typographer.go#L242: if s.Substitutions[LeftSingleQuote] != nil && d.CanOpen && !d.CanClose {
typographer.go#L262: isClose := d.CanClose && !d.CanOpen
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#L274: if s.Substitutions[LeftDoubleQuote] != nil && d.CanOpen && !d.CanClose {
typographer.go#L282: isClose := d.CanClose && !d.CanOpen
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])))
![]() |
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. |