Skip to content

Commit

Permalink
Replace rehype-highlight w/ rehype-starry-night
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 9, 2024
1 parent 3832c32 commit e1f989b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"postcss-preset-env": "^10.0.0",
"prettier": "^3.0.0",
"rehype-cli": "^12.0.0",
"rehype-highlight": "^7.0.0",
"rehype-preset-minify": "^7.0.0",
"rehype-prevent-favicon-request": "^4.0.0",
"rehype-starry-night": "^2.0.0",
"remark-cli": "^12.0.0",
"remark-preset-wooorm": "^10.0.0",
"stylelint": "^16.0.0",
Expand All @@ -44,7 +44,7 @@
"private": true,
"rehype": {
"plugins": [
"rehype-highlight",
"rehype-starry-night",
"rehype-preset-minify",
"rehype-prevent-favicon-request"
]
Expand All @@ -60,8 +60,7 @@
"build:css": "postcss src/index.css -o dest/index.css",
"build:html": "rehype src -o dest",
"build:img": "cp -r src/cover.jpg dest",
"build:theme": "cp node_modules/highlight.js/styles/github.css dest/day.css && cp node_modules/highlight.js/styles/nord.css dest/night.css",
"build": "npm run build:css && npm run build:html && npm run build:theme && npm run build:asset && npm run build:img",
"build": "npm run build:css && npm run build:html && npm run build:asset && npm run build:img",
"format": "remark . -qfo && prettier . -w --log-level warn && stylelint src/index.css --fix",
"test": "npm run format && npm run build"
},
Expand Down
3 changes: 1 addition & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
<title>remark - markdown processor powered by plugins</title>
<meta name=viewport content=width=device-width,initial-scale=1>
<link rel=stylesheet href=index.css>
<link rel=stylesheet href=day.css>
<link rel=stylesheet href=night.css media="(prefers-color-scheme: dark)">
<link href=//esm.sh/@wooorm/starry-night@3/style/both.css rel=stylesheet>
<meta name=theme-color content=#e05d44>
<meta name=author content="Titus Wormer">
<meta name=description content="Markdown processor powered by plugins part of the unified collective">
Expand Down

0 comments on commit e1f989b

Please sign in to comment.