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(""), ""}, + {regexp.MustCompile("(?i)"), ""}, {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 >}}"}, diff --git a/commands/import_jekyll_test.go b/commands/import_jekyll_test.go index aae645df2..899e17b15 100644 --- a/commands/import_jekyll_test.go +++ b/commands/import_jekyll_test.go @@ -88,6 +88,8 @@ func TestConvertJekyllContent(t *testing.T) { }{ {map[interface{}]interface{}{}, `Test content\n\npart2 content`, `Test content\n\npart2 content`}, + {map[interface{}]interface{}{}, + `Test content\n\npart2 content`, `Test content\n\npart2 content`}, {map[interface{}]interface{}{"excerpt_separator": ""}, `Test content\n\npart2 content`, `Test content\n\npart2 content`}, {map[interface{}]interface{}{}, "{% raw %}text{% endraw %}", "text"},