summaryrefslogtreecommitdiff
path: root/t/docs-php-markdown-extra/Footnotes.text
diff options
context:
space:
mode:
authorbeatrice <beatrice@dangofactory.net>2026-11-22 20:01:35 +0900
committerbeatrice <beatrice@dangofactory.net>2026-11-22 20:01:35 +0900
commit6e93939f2b885f1f53836fa3e19b398a5ebbdf40 (patch)
tree5fde91edefd5452acabd3e09426a5a47f232a64c /t/docs-php-markdown-extra/Footnotes.text
downloadText-Markdown-master.tar.gz
Text-Markdown-master.zip
Import Text-Markdown-1.000031.tar.gzHEADlocal/Text-Markdownmaster
Diffstat (limited to 't/docs-php-markdown-extra/Footnotes.text')
-rw-r--r--t/docs-php-markdown-extra/Footnotes.text55
1 files changed, 55 insertions, 0 deletions
diff --git a/t/docs-php-markdown-extra/Footnotes.text b/t/docs-php-markdown-extra/Footnotes.text
new file mode 100644
index 0000000..d2cadf1
--- /dev/null
+++ b/t/docs-php-markdown-extra/Footnotes.text
@@ -0,0 +1,55 @@
+This is the first paragraph.[^first]
+
+[^first]: This is the first note.
+
+* List item one.[^second]
+* List item two.[^third]
+
+[^third]: This is the third note, defined out of order.
+[^second]: This is the second note.
+[^fourth]: This is the fourth note.
+
+# Header[^fourth]
+
+Some paragraph with a footnote[^1], and another[^2].
+
+[^1]: Content for fifth footnote.
+[^2]: Content for sixth footnote spaning on
+ three lines, with some span-level markup like
+ _emphasis_, a [link][].
+
+[link]: http://www.michelf.com/
+
+Another paragraph with a named footnote[^fn-name].
+
+[^fn-name]:
+ Footnote beginning on the line next to the marker.
+
+This paragraph should not have a footnote marker since
+the footnote is undefined.[^3]
+
+This paragraph should not have a footnote marker since
+the footnote has already been used before.[^1]
+
+This paragraph links to a footnote with plenty of
+block-level content.[^block]
+
+[^block]:
+ Paragraph.
+
+ * List item
+
+ > Blockquote
+
+ Code block
+
+This paragraph host the footnote reference within a
+footnote test[^reference].
+
+[^reference]:
+ This footnote attemps to refer to another footnote. This
+ should be impossible.[^impossible]
+
+[^impossible]:
+ This footnote should not appear, as it is refered from
+ another footnote, which is not allowed.