mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
Fix "unknown shortcode token" when calling shortcode within fenced code block
Fixes #10819
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user