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 committed by Lukas Reschke
parent e7a2151c4d
commit 1e453576dd
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
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">