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

Method addBlock

block.go:200–205  ·  view source on GitHub ↗
(typ NodeType, content []byte)

Source from the content-addressed store, hash-verified

198}
199
200func (p *Markdown) addBlock(typ NodeType, content []byte) *Node {
201 p.closeUnmatchedBlocks()
202 container := p.addChild(typ, 0)
203 container.content = content
204 return container
205}
206
207func (p *Markdown) isPrefixHeading(data []byte) bool {
208 if data[0] != '#' {

Callers 15

parseRefsToASTMethod · 0.95
blockMethod · 0.95
prefixHeadingMethod · 0.95
titleBlockMethod · 0.95
htmlMethod · 0.95
htmlCommentMethod · 0.95
htmlHrMethod · 0.95
fencedCodeBlockMethod · 0.95
tableMethod · 0.95
tableHeaderMethod · 0.95
tableRowMethod · 0.95
quoteMethod · 0.95

Calls 2

closeUnmatchedBlocksMethod · 0.95
addChildMethod · 0.95

Tested by

no test coverage detected