File tree Expand file tree Collapse file tree 3 files changed +4
-1047
lines changed Expand file tree Collapse file tree 3 files changed +4
-1047
lines changed Original file line number Diff line number Diff line change @@ -204,12 +204,13 @@ function markdownToHTML(str) {
204
204
return new Promise ( ( resolve , reject ) => {
205
205
try {
206
206
const stylStr = FS . readFileSync ( stylPath , 'utf8' ) ;
207
+ const stylMD = FS . readFileSync ( path . resolve ( 'node_modules/markdown-to-html-cli/github.css' ) , 'utf8' ) ;
207
208
stylus ( stylStr . toString ( ) )
208
209
. set ( 'filename' , stylPath )
209
210
. set ( 'compress' , true )
210
211
. render ( ( err , css ) => {
211
212
if ( err ) throw err ;
212
- resolve ( css ) ;
213
+ resolve ( ` ${ stylMD . replace ( / \n / , '' ) } \n ${ css } ` ) ;
213
214
} ) ;
214
215
} catch ( err ) {
215
216
reject ( err ) ;
Original file line number Diff line number Diff line change 29
29
"colors-cli" : " 1.0.28" ,
30
30
"ejs" : " 3.1.6" ,
31
31
"fs-extra" : " 10.0.0" ,
32
- "markdown-to-html-cli" : " 3.2.3 " ,
32
+ "markdown-to-html-cli" : " 3.2.4 " ,
33
33
"sitemap-generator" : " 8.5.1" ,
34
34
"sqlite3" : " 5.0.2" ,
35
35
"stylus" : " 0.55.0" ,
You can’t perform that action at this time.
0 commit comments