Reuse Literal for this data
Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
parent
f5d29afaf9
commit
0c349349de
|
@ -477,6 +477,7 @@ func (p *Parser) prefixSpecialHeading(data []byte) int {
|
||||||
IsSpecial: true,
|
IsSpecial: true,
|
||||||
Level: 1, // always level 1.
|
Level: 1, // always level 1.
|
||||||
}
|
}
|
||||||
|
block.Literal = data[i:end]
|
||||||
block.Content = data[i:end]
|
block.Content = data[i:end]
|
||||||
p.addBlock(block)
|
p.addBlock(block)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue