summaryrefslogtreecommitdiffstats
path: root/tests/fixtures/anchors.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-29 04:29:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-29 04:29:52 +0000
commitfcb2f10732db61d216e2105c8154486f66b3e3ff (patch)
treeefda929db4b1543eecc583e3b7d9c0bad4cd86a6 /tests/fixtures/anchors.md
parentInitial commit. (diff)
downloadmdit-py-plugins-fcb2f10732db61d216e2105c8154486f66b3e3ff.tar.xz
mdit-py-plugins-fcb2f10732db61d216e2105c8154486f66b3e3ff.zip
Adding upstream version 0.3.3.upstream/0.3.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/fixtures/anchors.md')
-rw-r--r--tests/fixtures/anchors.md65
1 files changed, 65 insertions, 0 deletions
diff --git a/tests/fixtures/anchors.md b/tests/fixtures/anchors.md
new file mode 100644
index 0000000..bd96d1f
--- /dev/null
+++ b/tests/fixtures/anchors.md
@@ -0,0 +1,65 @@
+basic (max level 2):
+.
+# H1
+
+## H2
+
+### H3
+.
+<h1 id="h1">H1</h1>
+<h2 id="h2">H2</h2>
+<h3>H3</h3>
+.
+
+space:
+.
+# a b c
+.
+<h1 id="a-b--c">a b c</h1>
+.
+
+characters:
+.
+# a,b\cβÊ
+.
+<h1 id="abcβê">a,b\cβÊ</h1>
+.
+
+emoji:
+.
+# 🚀a
+.
+<h1 id="a">🚀a</h1>
+.
+
+html entity:
+.
+# foo&amp;bar
+.
+<h1 id="foobar">foo&amp;bar</h1>
+.
+
+uniqueness:
+.
+# a
+# a
+## a
+.
+<h1 id="a">a</h1>
+<h1 id="a-1">a</h1>
+<h2 id="a-2">a</h2>
+.
+
+standard (permalink after):
+.
+# a
+.
+<h1 id="a">a <a class="header-anchor" href="#a">¶</a></h1>
+.
+
+standard (permalink before):
+.
+# a
+.
+<h1 id="a"><a class="header-anchor" href="#a">¶</a> a</h1>
+.