summaryrefslogtreecommitdiffstats
path: root/tdemarkdown/md4c/test/fuzz-input
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2022-02-05 17:44:26 +0000
committerSlávek Banko <slavek.banko@axis.cz>2022-04-18 06:58:02 +0200
commite87a929300f82e8b7608039f143b1533b51af4e0 (patch)
tree4cd1e34b81250a10eeb9ad4087c4a611dc080de5 /tdemarkdown/md4c/test/fuzz-input
parent8905a8003ddefcb8f57608b48585f98f7ac93958 (diff)
downloadtdelibs-e87a9293.tar.gz
tdelibs-e87a9293.zip
Add tdemarkdown part - embeddable lightweight markdown viewing component.
TDEMarkdown is based on the md4c library and using TDEHTML for rendering its output. For enhanced safety, on HTML widget is turned off everything we don't need for viewing. It integrates nicely into Konqueror and supports both Commonmark and GitHub markdown syntaxes. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com> Prepare to merge tdemarkdown into tdelibs. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 95279fbf6dfeb43d80590740a9259d7caa614177)
Diffstat (limited to 'tdemarkdown/md4c/test/fuzz-input')
-rw-r--r--tdemarkdown/md4c/test/fuzz-input/commonmark.md40
-rw-r--r--tdemarkdown/md4c/test/fuzz-input/gfm.md10
-rw-r--r--tdemarkdown/md4c/test/fuzz-input/latex-math.md1
-rw-r--r--tdemarkdown/md4c/test/fuzz-input/wiki.md1
4 files changed, 52 insertions, 0 deletions
diff --git a/tdemarkdown/md4c/test/fuzz-input/commonmark.md b/tdemarkdown/md4c/test/fuzz-input/commonmark.md
new file mode 100644
index 000000000..974d817ba
--- /dev/null
+++ b/tdemarkdown/md4c/test/fuzz-input/commonmark.md
@@ -0,0 +1,40 @@
+
+# h1
+## h2
+### h3
+#### h4
+##### h5
+###### h6
+
+h1
+==
+
+h2
+--
+
+--------------------
+
+ indented code
+
+```
+fenced code
+```
+
+<tag attr='val' attr2="val2">
+
+> quote
+
+* list item
+1. list item
+
+[ref]: /url
+
+paragraph
+&copy; &#1234; &#xabcd;
+`code`
+*emph* **strong** ***strong emph***
+_emph_ __strong__ ___strong emph___
+[ref] [ref][] [link](/url)
+![ref] ![ref][] ![img](/url)
+<http://example.com> <doe@example.com>
+\\ \* \. \` \
diff --git a/tdemarkdown/md4c/test/fuzz-input/gfm.md b/tdemarkdown/md4c/test/fuzz-input/gfm.md
new file mode 100644
index 000000000..dfdbc7290
--- /dev/null
+++ b/tdemarkdown/md4c/test/fuzz-input/gfm.md
@@ -0,0 +1,10 @@
+* [ ] unchecked
+* [x] checked
+
+ A | B | C
+---|--:|:-:
+aaa|bbb|ccc
+
+~del~ ~~del~~
+
+http://example.com www.example.com doe@example.com
diff --git a/tdemarkdown/md4c/test/fuzz-input/latex-math.md b/tdemarkdown/md4c/test/fuzz-input/latex-math.md
new file mode 100644
index 000000000..d17af345d
--- /dev/null
+++ b/tdemarkdown/md4c/test/fuzz-input/latex-math.md
@@ -0,0 +1 @@
+$a^2+b^2=c^2$ $$a^2+b^2=c^2$$
diff --git a/tdemarkdown/md4c/test/fuzz-input/wiki.md b/tdemarkdown/md4c/test/fuzz-input/wiki.md
new file mode 100644
index 000000000..a4239745c
--- /dev/null
+++ b/tdemarkdown/md4c/test/fuzz-input/wiki.md
@@ -0,0 +1 @@
+[[wiki]] [[wiki|label]]