Source File
callout.go
Belonging Package
github.com/gomarkdown/markdown/parser
package parserimport ()// IsCallout detects a callout in the following format: <<N>> Where N is a integer > 0.func ( []byte) ( []byte, int) {if !bytes.HasPrefix(, []byte("<<")) {return nil, 0}:= 2:= bytes.Index([:], []byte(">>"))if < 0 {return nil, 0}:= [ : +]= bytes.TrimSpace(), := strconv.Atoi(string())if != nil {return nil, 0}if <= 0 {return nil, 0}return , + + 2 // 2 for >>}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux 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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |