From fcb2f10732db61d216e2105c8154486f66b3e3ff Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 29 Apr 2024 06:29:52 +0200 Subject: Adding upstream version 0.3.3. Signed-off-by: Daniel Baumann --- tests/fixtures/admon.md | 269 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 269 insertions(+) create mode 100644 tests/fixtures/admon.md (limited to 'tests/fixtures/admon.md') diff --git a/tests/fixtures/admon.md b/tests/fixtures/admon.md new file mode 100644 index 0000000..587ae80 --- /dev/null +++ b/tests/fixtures/admon.md @@ -0,0 +1,269 @@ + +Simple admonition +. +!!! note + *content* +. +
+

Note

+

content

+
+. + + +Could contain block elements too +. +!!! note + ### heading + + ----------- + +. +
+

Note

+

heading

+
+
+. + + +Shows custom title +. +!!! note Custom title + + Some text + +. +
+

Custom title

+

Some text

+
+. + + +Shows no title +. +!!! note "" + Some text + +. +
+

Some text

+
+. + + +Closes block after 2 empty lines +. +!!! note + Some text + + + A code block +. +
+

Note

+

Some text

+
+
A code block
+
+. + + +Nested blocks +. +!!! note + !!! note + Some text + + code block +. +
+

Note

+
+

Note

+

Some text

+
code block
+
+
+
+. + + +Consecutive admonitions +. +!!! note + +!!! warning +. +
+

Note

+
+
+

Warning

+
+. + + +Marker may be indented up to 3 chars +. + !!! note + content +. +
+

Note

+

content

+
+. + + +But that's a code block +. + !!! note + content +. +
!!! note
+    content
+
+. + + +Some more indent checks +. + !!! note + not a code block + + code block +. +
+

Note

+
+

not a code block

+
code block
+
+. + + +Type could be adjacent to marker +. +!!!note + xxx + +. +
+

Note

+

xxx

+
+. + + +Type could be adjacent to marker and content may be shifted up to 3 chars +. +!!!note + xxx + +. +
+

Note

+

xxx

+
+. + + +Or several spaces apart +. +!!! note + xxx +. +
+

Note

+

xxx

+
+. + + +Admonitions self-close at the end of the document +. +!!! note + xxx +. +
+

Note

+

xxx

+
+. + + +They could be nested in lists +. +- !!! note + - a + - b +- !!! warning + - c + - d +. + +. + + +Or in blockquotes +. +> !!! note +> xxx +> > yyy +> zzz +> +. +
+
+

Note

+

xxx

+
+

yyy +zzz

+
+
+
+. + + +Renders unknown admonition type +. +!!! unknown title + content +. +
+

title

+

content

+
+. + + +Does not render +. +!!! + content +. +

!!! +content

+. -- cgit v1.2.3