diff --git a/lib/private/preview/txt.php b/lib/private/preview/txt.php index e2d16d2ba1..b3820ead8d 100644 --- a/lib/private/preview/txt.php +++ b/lib/private/preview/txt.php @@ -60,3 +60,13 @@ class TXT extends Provider { } \OC\Preview::registerProvider('OC\Preview\TXT'); + +class MarkDown extends TXT { + + public function getMimeType() { + return '/text\/x-markdown/'; + } + +} + +\OC\Preview::registerProvider('OC\Preview\MarkDown');