Skip to content

Commit d6b8086

Browse files
committed
add json go template plugin to prism
1 parent e4e4967 commit d6b8086

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docusaurus.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ const config = {
148148
"custom-go-template",
149149
"custom-yaml-go-template",
150150
"custom-yaml-empty-key",
151+
"custom-json-go-template",
151152
],
152153
},
153154
metadata: [
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { implement } from "./prism-go-template"
2+
;(function (Prism) {
3+
const json = Prism.languages.json
4+
if (!json) return
5+
6+
implement(Prism, json.string)
7+
})(Prism)

0 commit comments

Comments
 (0)