diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-02-27 13:31:55 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-02-27 17:59:36 +0100 |
commit | f7109771a038e0237350dcfbe20f1036e9c8a46b (patch) | |
tree | c9eed611c56a8969509e40bc2db27d4e5e77d4ef /hugolib/page__per_output.go | |
parent | e1f696911ebbf870f9b6b814421dc880945a6b9a (diff) |
CodeblockContext method renames
Fixes #9577
Diffstat (limited to 'hugolib/page__per_output.go')
-rw-r--r-- | hugolib/page__per_output.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/page__per_output.go b/hugolib/page__per_output.go index 4067e827f..d79b152f3 100644 --- a/hugolib/page__per_output.go +++ b/hugolib/page__per_output.go @@ -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) |