🔧 config: add nginx and http markdown language highlight

This commit is contained in:
mrsingsing
2020-08-22 23:44:03 +08:00
parent 710d06f195
commit 4b9397e81f
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
import Prism from "prism-react-renderer/prism";
(typeof global !== "undefined" ? global : window).Prism = Prism
require("prismjs/components/prism-nginx")
require("prismjs/components/prism-http")
+3 -1
View File
@@ -13,7 +13,9 @@
},
"devDependencies": {
"dumi": "^1.0.31",
"lint-md": "^0.1.1"
"lint-md": "^0.1.1",
"prism-react-renderer": "^1.1.1",
"prismjs": "^1.21.0"
},
"homepage": "https://github.com/tsejx/javascript-guidebook#readme",
"repository": {