aboutsummaryrefslogtreecommitdiff
path: root/markdown/lexer_test.go
diff options
context:
space:
mode:
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) {