aboutsummaryrefslogtreecommitdiff
path: root/markdown/ast_callout_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'markdown/ast_callout_test.go')
-rw-r--r--markdown/ast_callout_test.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/markdown/ast_callout_test.go b/markdown/ast_callout_test.go
new file mode 100644
index 0000000..75140d4
--- /dev/null
+++ b/markdown/ast_callout_test.go
@@ -0,0 +1,16 @@
+package markdown
+
+import "testing"
+
+func TestCallout(t *testing.T) {
+ t.Run("callout", func(t *testing.T) {
+ t.Run("simple", test(`
+> [!NOTE]
+`, `<div data-kind="note" class="callout"><h4>note</h4><div></div></div>`))
+ t.Run("multiline", test(`
+> [!NOTE] Hey :3
+> content 1
+> content 2
+`, `<div data-kind="note" class="callout"><h4>Hey :3</h4><div><p>content 1</p><p>content 2</p></div></div>`))
+ })
+}