Fix panic with markdownify/RenderString with shortcode on Page with no content file

Fixes #9959
This commit is contained in:
Bjørn Erik Pedersen
2022-06-01 10:19:05 +02:00
parent 4daac654d9
commit 212d9e3017
6 changed files with 35 additions and 6 deletions

View File

@@ -163,8 +163,6 @@ func (m *pageMap) newPageFromContentNode(n *contentNode, parentBucket *pagesMapB
},
}
ps.shortcodeState = newShortcodeHandler(ps, ps.s)
if err := ps.mapContent(parentBucket, metaProvider); err != nil {
return nil, ps.wrapError(err)
}