File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import path from 'path'
3
3
import yaml from 'js-yaml'
4
4
import somebody from 'somebody'
5
5
import chalk from 'chalk'
6
+ import marked from 'marked'
6
7
7
8
const opts = {
8
9
root : `${ process . cwd ( ) } /awesomeness` ,
@@ -44,6 +45,10 @@ function parseDir(filename) {
44
45
if ( info . content . author ) {
45
46
info . content . author = somebody . parse ( info . content . author )
46
47
}
48
+
49
+ if ( info . content . description ) {
50
+ info . content . description = marked ( info . content . description )
51
+ }
47
52
}
48
53
49
54
return info
Original file line number Diff line number Diff line change 8
8
<template v-else >{{ item.author.name }}</template >
9
9
</span >
10
10
</h1 >
11
- <p class =" thin" v-if =" item.description" >{{ item.description }}</ p >
11
+ <div class =" thin" v-if =" item.description" v-html = " item.description" ></ div >
12
12
<footer class =" thin" v-if =" item.tags" >
13
13
<ul >
14
14
<li v-for =" tag in item.tags" >
Original file line number Diff line number Diff line change 22
22
"file-loader" : " ^0.8.4" ,
23
23
"js-yaml" : " ^3.6.1" ,
24
24
"lodash" : " ^4.13.1" ,
25
+ "marked" : " ^0.3.5" ,
25
26
"node-sass" : " ^3.8.0" ,
26
27
"sass-loader" : " ^3.2.1" ,
27
28
"somebody" : " ^2.0.0" ,
You can’t perform that action at this time.
0 commit comments