diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-28 21:07:12 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-28 21:07:12 +0200 |
| commit | a75d03583c0691b1830122979d44737e574f27c7 (patch) | |
| tree | 0c5431bf66cd816a5e07264f307ed8c3833b2edb /src/callout.zig | |
| parent | c6e771fff0515d3a8e0cbc928c103b6c86f22c0f (diff) | |
feat(): support callout's title
Diffstat (limited to 'src/callout.zig')
| -rw-r--r-- | src/callout.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/callout.zig b/src/callout.zig index 9c5bab5..1c756d6 100644 --- a/src/callout.zig +++ b/src/callout.zig @@ -57,17 +57,17 @@ test "callout" { \\::: \\hey \\::: - , "<div class=\"callout\"><p>hey</p></div>"); + , "<div data-callout=\"default\" class=\"callout\"><h4>default</h4><p>hey</p></div>"); try doTest(parse, alloc, \\:::info \\hey \\::: - , "<div data-callout=\"info\" class=\"callout\"><p>hey</p></div>"); + , "<div data-callout=\"info\" class=\"callout\"><h4>info</h4><p>hey</p></div>"); try doTest(parse, alloc, \\::: info Title \\hey \\::: - , "<div data-callout=\"info\" class=\"callout\"><p>hey</p></div>"); + , "<div data-callout=\"info\" class=\"callout\"><h4>Title</h4><p>hey</p></div>"); // cannot test content with \n try doTestError(parse, alloc, ":::", Error.InvalidCallout); |
