aboutsummaryrefslogtreecommitdiff
path: root/mardown/ast_test.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 13:21:37 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 13:21:37 +0200
commit72eed1cfa1f5067a7ca581c53bb40e9e0fb047cc (patch)
tree5a4e8b69c4e2705222baf1e1c8e0ffcfadfb3c98 /mardown/ast_test.go
parentcdb0a541554aa4a16fc71b6425225e8c603c83b8 (diff)
fix(markdown): bad list parsing
Diffstat (limited to 'mardown/ast_test.go')
-rw-r--r--mardown/ast_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/mardown/ast_test.go b/mardown/ast_test.go
index 573349e..3b2a77a 100644
--- a/mardown/ast_test.go
+++ b/mardown/ast_test.go
@@ -23,6 +23,10 @@ avec une source
1. et maintenant
2. elle l'est
- hehe
+
+![Ceci est ma pfp :3](https://cdn.anhgelus.world/pfp.jpg)
+Ma pfp hehe :D
+Elle est **magnifique**, n'est-ce pas ?
`
var parsed = `
@@ -34,6 +38,10 @@ var parsed = `
<ul><li>Ceci est une liste</li><li>pas ordonnée</li></ul>
<ol><li>et maintenant</li><li>elle l&#39;est</li></ol>
<ul><li>hehe</li></ul>
+<figure>
+<img alt="Ceci est ma pfp :3" src="https://cdn.anhgelus.world/pfp.jpg">
+<figcaption>Ma pfp hehe :D Elle est <b>magnifique</b>, n&#39;est-ce pas ?</figcaption>
+</figure>
`
func TestAst(t *testing.T) {