Fix "unknown shortcode token" when calling shortcode within fenced code block

Fixes #10819
This commit is contained in:
Bjørn Erik Pedersen
2023-03-12 10:50:16 +01:00
parent d55af2abf0
commit e7148f335f
2 changed files with 38 additions and 1 deletions

View File

@@ -186,7 +186,7 @@ func (scp *ShortcodeWithPage) page() page.Page {
const shortcodePlaceholderPrefix = "HAHAHUGOSHORTCODE"
func createShortcodePlaceholder(id string, ordinal int) string {
return shortcodePlaceholderPrefix + "-" + id + strconv.Itoa(ordinal) + "-HBHB"
return shortcodePlaceholderPrefix + id + strconv.Itoa(ordinal) + "HBHB"
}
type shortcode struct {