Render markdown
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
33644d9da3
commit
eb94f748c8
|
@ -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);
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue