Signed-off-by: Joas Schilling <coding@schilljs.com>
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);
vendor_script(
'core',
[
- 'handlebars/handlebars'
+ 'handlebars/handlebars',
+ 'marked/marked.min',
]
);
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">