Reuse Literal for this data

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben 2018-08-18 13:20:07 +02:00
parent f5d29afaf9
commit 0c349349de
1 changed files with 1 additions and 0 deletions

View File

@ -477,6 +477,7 @@ func (p *Parser) prefixSpecialHeading(data []byte) int {
IsSpecial: true,
Level: 1, // always level 1.
}
block.Literal = data[i:end]
block.Content = data[i:end]
p.addBlock(block)
}