Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
71601a7c
Commit
71601a7c
authored
Oct 14, 2013
by
Georg Ehrke
Browse files
implement previews for markdown
parent
e28f7f8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/preview/txt.php
View file @
71601a7c
...
...
@@ -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'
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment