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

Function finalizeCodeBlock

block.go:730–741  ·  view source on GitHub ↗
(block *Node)

Source from the content-addressed store, hash-verified

728}
729
730func finalizeCodeBlock(block *Node) {
731 if block.IsFenced {
732 newlinePos := bytes.IndexByte(block.content, '\n')
733 firstLine := block.content[:newlinePos]
734 rest := block.content[newlinePos+1:]
735 block.Info = unescapeString(bytes.Trim(firstLine, "\n"))
736 block.Literal = rest
737 } else {
738 block.Literal = block.content
739 }
740 block.content = nil
741}
742
743func (p *Markdown) table(data []byte) int {
744 table := p.addBlock(Table, nil)

Callers 2

fencedCodeBlockMethod · 0.85
codeMethod · 0.85

Calls 1

unescapeStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…