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

Method addChild

markdown.go:221–223  ·  view source on GitHub ↗
(node NodeType, offset uint32)

Source from the content-addressed store, hash-verified

219}
220
221func (p *Markdown) addChild(node NodeType, offset uint32) *Node {
222 return p.addExistingChild(NewNode(node), offset)
223}
224
225func (p *Markdown) addExistingChild(node *Node, offset uint32) *Node {
226 for !p.tip.canContain(node.Type) {

Callers 2

addBlockMethod · 0.95
listItemMethod · 0.95

Calls 2

addExistingChildMethod · 0.95
NewNodeFunction · 0.85

Tested by

no test coverage detected