diff --git a/render_test.go b/render_test.go index 8195e4c..b565ff3 100644 --- a/render_test.go +++ b/render_test.go @@ -89,7 +89,7 @@ func TestSimple(t *testing.T) { func TestRender(t *testing.T) { - pairNames := []string{"ops1", "nested", "ordering", "list1", "list2", "list3", "list4", "indent", "code1", "code2"} + pairNames := []string{"ops1", "nested", "ordering", "list1", "list2", "list3", "list4", "indent", "code1", "code2", "code3"} for _, n := range pairNames { t.Run(n, func(t *testing.T) { diff --git a/testdata/code3.html b/testdata/code3.html new file mode 100644 index 0000000..73e3515 --- /dev/null +++ b/testdata/code3.html @@ -0,0 +1,2 @@ +
<tag>x</tag>
+

Stuff after code

\ No newline at end of file diff --git a/testdata/code3.json b/testdata/code3.json new file mode 100644 index 0000000..96b9e93 --- /dev/null +++ b/testdata/code3.json @@ -0,0 +1,14 @@ +[ + { + "insert": "x" + }, + { + "insert": "\n", + "attributes": { + "code-block": true + } + }, + { + "insert": "Stuff after code\n" + } +] \ No newline at end of file