diff options
| author | William Hergès <william@herges.fr> | 2025-10-03 22:15:12 +0200 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-10-03 22:15:12 +0200 |
| commit | ce6a2da035dc045510157a0eeefaebf56f0e8958 (patch) | |
| tree | 47d6dca601372c110681a301f25f05279e456523 /markdown/ast_external_test.go | |
| parent | 9644afb7552d1b030beea6c8794f4419b9c686fe (diff) | |
fix(markdown): external source never stopped
Diffstat (limited to 'markdown/ast_external_test.go')
| -rw-r--r-- | markdown/ast_external_test.go | 4 |
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) {  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) } |
