(block *Node)
| 728 | } |
| 729 | |
| 730 | func 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 | |
| 743 | func (p *Markdown) table(data []byte) int { |
| 744 | table := p.addBlock(Table, nil) |
no test coverage detected
searching dependent graphs…