- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for newSetextHeading (0.15 sec)
-
src/cmd/vendor/rsc.io/markdown/heading.go
return "", s } id = strings.TrimSpace(s[i+2 : j]) if id == "" { p.corner = true // goldmark accepts {#} return "", s } return s[i+2 : j], s[:i] } func newSetextHeading(p *parseState, s line) (line, bool) { var n int peek := s if p.nextB() == p.para() && peek.trimSetext(&n) { p.closeBlock() para, ok := p.last().(*Paragraph) if !ok { return s, false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 3.6K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/parse.go
newPara(p, s) } func (c *rootBuilder) extend(p *parseState, s line) (line, bool) { panic("root extend") } var news = []func(*parseState, line) (line, bool){ newQuote, newATXHeading, newSetextHeading, newHR, newListItem, newHTML, newFence, newPre, } func (s *line) peek() byte { if s.spaces > 0 { return ' ' } if s.i >= len(s.text) { return 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 13.8K bytes - Viewed (0)