mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 06:00:25 +03:00
parent
e1f696911e
commit
f7109771a0
7 changed files with 14 additions and 14 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue