- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for addBlock (0.1 sec)
-
src/cmd/vendor/rsc.io/markdown/html.go
} { b := &htmlBuilder{endBlank: true} p.addBlock(b) b.text = append(b.text, s.string()) return true } Next: // case 1 if len(t) > 1 && t[1] != '/' && (i >= len(t) || t[i] == ' ' || t[i] == '\t' || t[i] == '>') { switch string(buf) { case "pre", "script", "style", "textarea": b := &htmlBuilder{endFunc: hasEndPre} p.addBlock(b) b.text = append(b.text, s.string())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 11.9K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/parse.go
var ps parseState ps.Parser = p if strings.Contains(text, "\x00") { text = strings.ReplaceAll(text, "\x00", "\uFFFD") ps.corner = true // goldmark does not replace NUL } ps.lineDepth = -1 ps.addBlock(&rootBuilder{}) for text != "" { var ln string i := strings.Index(text, "\n") j := strings.Index(text, "\r") var nl byte switch { case j >= 0 && (i < 0 || j < i): // have \r, maybe \r\n
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 13.8K bytes - Viewed (0)