summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2020-12-26 21:57:48 +0200
committerVille Skyttä <ville.skytta@iki.fi>2020-12-26 21:58:28 +0200
commit9363ed94f7afecebe20cd969e1eb9331e41e38d6 (patch)
tree37d65f7b4f5f11e590e7458de0bb85ba3dd0c6f1
parent5b254b9f344f8954674541aecc8445d772531536 (diff)
downloadshared-mime-info-9363ed94f7afecebe20cd969e1eb9331e41e38d6.tar.gz
text/markdown: add Pandoc flavored test case
Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/138
-rw-r--r--tests/mime-detection/README-pandoc-flavored-markdown.md6
-rw-r--r--tests/mime-detection/list2
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/mime-detection/README-pandoc-flavored-markdown.md b/tests/mime-detection/README-pandoc-flavored-markdown.md
new file mode 100644
index 00000000..726fdbee
--- /dev/null
+++ b/tests/mime-detection/README-pandoc-flavored-markdown.md
@@ -0,0 +1,6 @@
+% Title
+% Author
+
+# This is a markdown file...
+
+...with a title block for [Pandoc-flavoured markdown](https://pandoc.org/MANUAL.html#extension-pandoc_title_block)
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index a8bd4be7..637eb5e4 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -651,6 +651,8 @@ test10.gpx application/gpx+xml ox
test.gnd application/gnunet-directory
# Copied from https://bugs.freedesktop.org/show_bug.cgi?id=27441
markdown.md text/markdown oxo
+# Copied from https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/138
+README-pandoc-flavored-markdown.md text/markdown ox
# Manually assembled from formatting examples at https://en.wikipedia.org/wiki/ReStructuredText
reStructuredText.rst text/x-rst ox
text.ps application/postscript