implement previews for markdown

This commit is contained in:
Georg Ehrke 2013-10-14 14:10:47 +02:00
parent e28f7f8a33
commit 71601a7c6f
1 changed files with 10 additions and 0 deletions

View File

@ -60,3 +60,13 @@ class TXT extends Provider {
} }
\OC\Preview::registerProvider('OC\Preview\TXT'); \OC\Preview::registerProvider('OC\Preview\TXT');
class MarkDown extends TXT {
public function getMimeType() {
return '/text\/x-markdown/';
}
}
\OC\Preview::registerProvider('OC\Preview\MarkDown');