Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newHR (0.26 sec)

  1. src/cmd/vendor/rsc.io/markdown/break.go

    	buf.WriteString("<hr />\n")
    }
    
    func (b *ThematicBreak) printMarkdown(buf *bytes.Buffer, s mdState) {
    	buf.WriteString(s.prefix)
    	buf.WriteString(b.raw)
    	buf.WriteByte('\n')
    }
    
    func newHR(p *parseState, s line) (line, bool) {
    	if isHR(s) {
    		p.doneBlock(&ThematicBreak{Position{p.lineno, p.lineno}, s.string()})
    		return line{}, true
    	}
    	return s, false
    }
    
    func isHR(s line) bool {
    	t := s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. src/cmd/vendor/rsc.io/markdown/parse.go

    }
    
    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
    	}
    	return s.text[s.i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top