CodeblockContext method renames

Fixes #9577
This commit is contained in:
Bjørn Erik Pedersen 2022-02-27 13:31:55 +01:00
parent e1f696911e
commit f7109771a0
7 changed files with 14 additions and 14 deletions

View file

@ -436,7 +436,7 @@ func (p *pageContentOutput) initRenderHooks() error {
switch v := ctx.(type) {
case hooks.CodeblockContext:
offset = bytes.Index(p.p.source.parsed.Input(), []byte(v.Code()))
offset = bytes.Index(p.p.source.parsed.Input(), []byte(v.Inner()))
}
pos := p.p.posFromInput(p.p.source.parsed.Input(), offset)