Skip to content

Commit 0d1b162

Browse files
committed
style: update markdown style.
1 parent f1f85e9 commit 0d1b162

File tree

3 files changed

+4
-1047
lines changed

3 files changed

+4
-1047
lines changed

build/build.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
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",

0 commit comments

Comments
 (0)