(typ NodeType, content []byte)
| 198 | } |
| 199 | |
| 200 | func (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 | |
| 207 | func (p *Markdown) isPrefixHeading(data []byte) bool { |
| 208 | if data[0] != '#' { |
no test coverage detected