diff options
author | Stefan Buynov <stefan.buynov@gmail.com> | 2017-03-18 17:16:25 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-18 16:16:25 +0100 |
commit | 9dfb9c14454e6184cd7ff52f6b9f1beffbadf1e5 (patch) | |
tree | 1a275717760652fb4a4c233959015a7ea8640065 /commands/import_jekyll.go | |
parent | c2ffdfab63510e5fe9c96ab06f99e652e417d9b8 (diff) |
Case insensitive translation of the 'more' tag when importing from Jekyll
Diffstat (limited to 'commands/import_jekyll.go')
-rw-r--r-- | commands/import_jekyll.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/import_jekyll.go b/commands/import_jekyll.go index 071257d7d..89fab8ba3 100644 --- a/commands/import_jekyll.go +++ b/commands/import_jekyll.go @@ -518,7 +518,7 @@ func convertJekyllContent(m interface{}, content string) string { re *regexp.Regexp replace string }{ - {regexp.MustCompile("<!-- more -->"), "<!--more-->"}, + {regexp.MustCompile("(?i)<!-- more -->"), "<!--more-->"}, {regexp.MustCompile(`\{%\s*raw\s*%\}\s*(.*?)\s*\{%\s*endraw\s*%\}`), "$1"}, {regexp.MustCompile(`{%\s*highlight\s*(.*?)\s*%}`), "{{< highlight $1 >}}"}, {regexp.MustCompile(`{%\s*endhighlight\s*%}`), "{{< / highlight >}}"}, |