Case insensitive translation of the 'more' tag when importing from Jekyll

This commit is contained in:
Stefan Buynov
2017-03-18 17:16:25 +02:00
committed by Bjørn Erik Pedersen
parent c2ffdfab63
commit 9dfb9c1445
2 changed files with 3 additions and 1 deletions

View File

@@ -88,6 +88,8 @@ func TestConvertJekyllContent(t *testing.T) {
}{
{map[interface{}]interface{}{},
`Test content\n<!-- more -->\npart2 content`, `Test content\n<!--more-->\npart2 content`},
{map[interface{}]interface{}{},
`Test content\n<!-- More -->\npart2 content`, `Test content\n<!--more-->\npart2 content`},
{map[interface{}]interface{}{"excerpt_separator": "<!--sep-->"},
`Test content\n<!--sep-->\npart2 content`, `Test content\n<!--more-->\npart2 content`},
{map[interface{}]interface{}{}, "{% raw %}text{% endraw %}", "text"},