diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-12-10 12:20:21 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-12-10 12:20:21 +0100 |
| commit | 707121c88e2a97d3bfceaba850dcdda79c0f4f37 (patch) | |
| tree | 55a3b37fa6f57d784a059bd8cacba5cb8e746a58 /markdown/ast_external_test.go | |
| parent | 1da34bf7dd198f2cf2a287be4262c61e0e54c275 (diff) | |
fix(markdown): bad render of external images in rare cases
Diffstat (limited to 'markdown/ast_external_test.go')
| -rw-r--r-- | markdown/ast_external_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/markdown/ast_external_test.go b/markdown/ast_external_test.go index f3ac976..514cc89 100644 --- a/markdown/ast_external_test.go +++ b/markdown/ast_external_test.go @@ -32,6 +32,7 @@ func TestExternal(t *testing.T) { } lxs = lex(` +Avant la source  source 1 source 2 @@ -46,7 +47,7 @@ Hors de la source if err != nil { t.Fatal(err) } - if string(got) != `<figure><img alt="image alt" src="image src"><figcaption>source 1 source 2</figcaption></figure><p>Hors de la source</p>` { + if string(got) != `<p>Avant la source</p><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) } |
