diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-03-01 11:03:37 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-03-01 11:04:25 +0100 |
commit | 7f682d78022dae3c8854ca118cdbf4bc79255977 (patch) | |
tree | f2083f68c78db6ce09bda281551748f2213303be /hugolib/shortcode.go | |
parent | cc38a40f4e79369af22974129969732c4f4af4ba (diff) |
Fix shortcode handling in RST
Fixes #1904
Diffstat (limited to 'hugolib/shortcode.go')
-rw-r--r-- | hugolib/shortcode.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/shortcode.go b/hugolib/shortcode.go index a1e0cc35d..4cd1db87b 100644 --- a/hugolib/shortcode.go +++ b/hugolib/shortcode.go @@ -182,7 +182,7 @@ func isInnerShortcode(t *template.Template) (bool, error) { } func createShortcodePlaceholder(id int) string { - return fmt.Sprintf("{@{@%s-%d@}@}", shortcodePlaceholderPrefix, id) + return fmt.Sprintf("{#{#%s-%d#}#}", shortcodePlaceholderPrefix, id) } const innerNewlineRegexp = "\n" @@ -477,8 +477,8 @@ func replaceShortcodeTokens(source []byte, prefix string, replacements map[strin sourceLen := len(source) start := 0 - pre := []byte("{@{@" + prefix) - post := []byte("@}@}") + pre := []byte("{#{#" + prefix) + post := []byte("#}#}") pStart := []byte("<p>") pEnd := []byte("</p>") |