implement previews for markdown
This commit is contained in:
parent
e28f7f8a33
commit
71601a7c6f
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue