diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-02-05 10:50:12 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-02-05 16:36:41 +0000 |
| commit | d6e75145e54854484f2114398ff89787d243608a (patch) | |
| tree | e79dc8d4cc0a25767dff618405bb8d982800229a /markdown/ast_callout_test.go | |
| parent | cd3bd5dff64fa80c7170d7f5d2d05f610fec36ee (diff) | |
feat(markdown): interprate callout
Diffstat (limited to 'markdown/ast_callout_test.go')
| -rw-r--r-- | markdown/ast_callout_test.go | 16 |
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>`)) + }) +} |
