aboutsummaryrefslogtreecommitdiff
path: root/markdown/ast_external_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'markdown/ast_external_test.go')
-rw-r--r--markdown/ast_external_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/markdown/ast_external_test.go b/markdown/ast_external_test.go
index 6de512b..306b9d0 100644
--- a/markdown/ast_external_test.go
+++ b/markdown/ast_external_test.go
@@ -33,6 +33,8 @@ func TestExternal(t *testing.T) {
![image alt](image src)
source 1
source 2
+
+Hors de la source
`)
tree, err = ast(lxs)
if err != nil {
@@ -42,7 +44,7 @@ source 2
if err != nil {
t.Fatal(err)
}
- if string(got) != `<figure><img alt="image alt" src="image src"><figcaption>source 1 source 2</figcaption></figure>` {
+ if string(got) != `<figure><img alt="image alt" src="image src"><figcaption>source 1 source 2</figcaption></figure><p>Hors de la source</p>` {
t.Errorf("invalid value, got %s", got)
}