summaryrefslogtreecommitdiffstats
path: root/mimetypes
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-17 18:35:01 +0200
commit95279fbf6dfeb43d80590740a9259d7caa614177 (patch)
tree8c3ff4de77102f1e55357dd81d650e9f22be69a0 /mimetypes
parenta291f3a0a3fab073c009f77a36745c5c7bd48e9b (diff)
downloadtdelibs-95279fbf6dfeb43d80590740a9259d7caa614177.tar.gz
tdelibs-95279fbf6dfeb43d80590740a9259d7caa614177.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>
Diffstat (limited to 'mimetypes')
-rw-r--r--mimetypes/text/CMakeLists.txt1
-rw-r--r--mimetypes/text/markdown.desktop11
2 files changed, 12 insertions, 0 deletions
diff --git a/mimetypes/text/CMakeLists.txt b/mimetypes/text/CMakeLists.txt
index 918024dce..7f815bf86 100644
--- a/mimetypes/text/CMakeLists.txt
+++ b/mimetypes/text/CMakeLists.txt
@@ -21,6 +21,7 @@ tde_create_translated_desktop(
x-bibtex.desktop rdf.desktop rss.desktop calendar.desktop x-adasrc.desktop x-perl.desktop
x-csv.desktop x-latex.desktop x-xslfo.desktop x-xslt.desktop vnd.wap.wml.desktop x-katefilelist.desktop
docbook.desktop x-mswinurl.desktop x-hex.desktop vnd.abc.desktop javascript.desktop x-python.desktop
+ markdown.desktop
DESTINATION ${MIME_INSTALL_DIR}/text
PO_DIR mimetypes
)
diff --git a/mimetypes/text/markdown.desktop b/mimetypes/text/markdown.desktop
new file mode 100644
index 000000000..41719d086
--- /dev/null
+++ b/mimetypes/text/markdown.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Comment=Markdown document
+Type=MimeType
+MimeType=text/markdown
+Icon=text-x-generic
+Patterns=*.md;
+DefaultApp=konqueror
+
+[Property::X-TDE-text]
+Type=bool
+Value=true