From cd3bd5dff64fa80c7170d7f5d2d05f610fec36ee Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Thu, 5 Feb 2026 09:09:19 +0100 Subject: feat(markdown): lex callout --- markdown/lexer_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'markdown/lexer_test.go') 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) { -- cgit v1.2.3