File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -204,12 +204,13 @@ function markdownToHTML(str) {
204204 return new Promise ( ( resolve , reject ) => {
205205 try {
206206 const stylStr = FS . readFileSync ( stylPath , 'utf8' ) ;
207+ const stylMD = FS . readFileSync ( path . resolve ( 'node_modules/markdown-to-html-cli/github.css' ) , 'utf8' ) ;
207208 stylus ( stylStr . toString ( ) )
208209 . set ( 'filename' , stylPath )
209210 . set ( 'compress' , true )
210211 . render ( ( err , css ) => {
211212 if ( err ) throw err ;
212- resolve ( css ) ;
213+ resolve ( ` ${ stylMD . replace ( / \n / , '' ) } \n ${ css } ` ) ;
213214 } ) ;
214215 } catch ( err ) {
215216 reject ( err ) ;
Original file line number Diff line number Diff line change 2929 "colors-cli" : " 1.0.28" ,
3030 "ejs" : " 3.1.6" ,
3131 "fs-extra" : " 10.0.0" ,
32- "markdown-to-html-cli" : " 3.2.3 " ,
32+ "markdown-to-html-cli" : " 3.2.4 " ,
3333 "sitemap-generator" : " 8.5.1" ,
3434 "sqlite3" : " 5.0.2" ,
3535 "stylus" : " 0.55.0" ,
You can’t perform that action at this time.
0 commit comments