aboutsummaryrefslogtreecommitdiff
path: root/markdown/lexer_test.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-12-10 12:20:21 +0100
committerAnhgelus Morhtuuzh <william@herges.fr>2025-12-10 12:20:21 +0100
commit707121c88e2a97d3bfceaba850dcdda79c0f4f37 (patch)
tree55a3b37fa6f57d784a059bd8cacba5cb8e746a58 /markdown/lexer_test.go
parent1da34bf7dd198f2cf2a287be4262c61e0e54c275 (diff)
fix(markdown): bad render of external images in rare cases
Diffstat (limited to 'markdown/lexer_test.go')
-rw-r--r--markdown/lexer_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/lexer_test.go b/markdown/lexer_test.go
index c670753..e994142 100644
--- a/markdown/lexer_test.go
+++ b/markdown/lexer_test.go
@@ -12,7 +12,7 @@ func TestLex(t *testing.T) {
t.Errorf("invalid lex, got %s", lxs)
}
lxs = lex("# bonjour les gens\nComment ça va ?")
- if lxs.String() != "Lexers[header(#) literal( bonjour les gens) break(\n) literal(Comment ça va ?) ]" {
+ if lxs.String() != `Lexers[header(#) literal( bonjour les gens) break({\n}) literal(Comment ça va ?) ]` {
t.Errorf("invalid lex, got %s", lxs)
}
lxs = lex("***hey***, what's up?")