diff options
author | Jake Leahy <jake@leahy.dev> | 2023-09-01 08:41:40 +0000 |
---|---|---|
committer | David Faure <faure@kde.org> | 2023-09-01 08:41:40 +0000 |
commit | 7b1371eb64796ab9d5383536847e16c3dd487a35 (patch) | |
tree | f3af3162498b5e8032d83d45a040a4f9e45fd41f | |
parent | 2cd982ab017938a4402f4a656cedd16de0ac5b20 (diff) |
Add mime type for Typst files
-rw-r--r-- | data/freedesktop.org.xml.in | 5 | ||||
-rw-r--r-- | tests/mime-detection/list | 3 | ||||
-rw-r--r-- | tests/mime-detection/test.typ | 3 |
3 files changed, 11 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index 3f1287b..76e148d 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -6897,6 +6897,11 @@ command to generate the output files. <glob pattern="*.texi"/> <glob pattern="*.texinfo"/> </mime-type> + <mime-type type="text/x-typst"> + <comment>Typst document</comment> + <sub-class-of type="text/plain"/> + <glob pattern="*.typ"/> + </mime-type> <mime-type type="text/x-troff-me"> <comment>Troff ME input document</comment> <sub-class-of type="text/plain"/> diff --git a/tests/mime-detection/list b/tests/mime-detection/list index 06facd2..87bf1a5 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -967,3 +967,6 @@ blueprint.blp text/x-blueprint ox test.nim text/x-nim ox test.nims text/x-nimscript ox test.nimble text/x-nimscript ox + +# Typst document +test.typ text/x-typst ox diff --git a/tests/mime-detection/test.typ b/tests/mime-detection/test.typ new file mode 100644 index 0000000..0f5d15d --- /dev/null +++ b/tests/mime-detection/test.typ @@ -0,0 +1,3 @@ +=== Title + +Hello world |