aboutsummaryrefslogtreecommitdiff
path: root/markdown/lexer_test.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-02-05 09:09:19 +0100
committerAnhgelus Morhtuuzh <william@herges.fr>2026-02-05 16:36:41 +0000
commitcd3bd5dff64fa80c7170d7f5d2d05f610fec36ee (patch)
treed9976e9bd4419cabb30797f08903d9a9a910ca0c /markdown/lexer_test.go
parentd2273b16237e1c3d731a173f01632cf4f51848dd (diff)
feat(markdown): lex callout
Diffstat (limited to 'markdown/lexer_test.go')
-rw-r--r--markdown/lexer_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/markdown/lexer_test.go b/markdown/lexer_test.go
index d8ec3ba..5736b2a 100644
--- a/markdown/lexer_test.go
+++ b/markdown/lexer_test.go
@@ -28,6 +28,11 @@ func TestLex(t *testing.T) {
if lxs.String() != `Lexers[list(*) literal( list) ]` {
t.Errorf("invalid lex, got %s", lxs)
}
+ lxs = lex(`> [!NOTE] title
+> hey`, opt)
+ if lxs.String() != `Lexers[quote(>) literal( ) callout([!) literal(NOTE) callout(]) literal( title) break({\n}) quote(>) literal( hey) ]` {
+ t.Errorf("invalid lex, got %s", lxs)
+ }
}
func TestLex_Replacer(t *testing.T) {