Render markdown

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2016-09-30 14:41:19 +02:00
parent 33644d9da3
commit eb94f748c8
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
2 changed files with 6 additions and 2 deletions

View File

@ -186,6 +186,9 @@ OC.Settings.Apps = OC.Settings.Apps || {
app.author = app.author['@value'];
}
// Parse markdown in app description
app.description = marked(app.description.trim());
var html = template(app);
if (selector) {
selector.html(html);

View File

@ -3,7 +3,8 @@ style('settings', 'settings');
vendor_script(
'core',
[
'handlebars/handlebars'
'handlebars/handlebars',
'marked/marked.min',
]
);
script(
@ -59,7 +60,7 @@ script(
<div class="app-detailpage"></div>
<div class="app-description-container hidden">
<div class="app-description"><pre>{{description}}</pre></div>
<div class="app-description"><pre>{{{description}}}</pre></div>
<!--<div class="app-changed">{{changed}}</div>-->
{{#if documentation}}
<p class="documentation">