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-18 06:58:02 +0200
commite87a929300f82e8b7608039f143b1533b51af4e0 (patch)
tree4cd1e34b81250a10eeb9ad4087c4a611dc080de5 /mimetypes
parent8905a8003ddefcb8f57608b48585f98f7ac93958 (diff)
downloadtdelibs-e87a929300f82e8b7608039f143b1533b51af4e0.tar.gz
tdelibs-e87a929300f82e8b7608039f143b1533b51af4e0.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 '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