MCPcopy
hub / github.com/russross/blackfriday / lineBreak

Function lineBreak

inline.go:194–199  ·  view source on GitHub ↗

newline without two spaces works when HardLineBreak is enabled

(p *Markdown, data []byte, offset int)

Source from the content-addressed store, hash-verified

192
193// newline without two spaces works when HardLineBreak is enabled
194func lineBreak(p *Markdown, data []byte, offset int) (int, *Node) {
195 if p.extensions&HardLineBreak != 0 {
196 return 1, NewNode(Hardbreak)
197 }
198 return 0, nil
199}
200
201type linkType int
202

Callers

nothing calls this directly

Calls 1

NewNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…