-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathplugin.json
41 lines (41 loc) · 1.6 KB
/
plugin.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"id": "nodebb-plugin-markdown",
"name": "Markdown Parser",
"description": "A Markdown parser for NodeBB",
"url": "https://github.com/julianlam/nodebb-plugin-markdown",
"library": "./index.js",
"scss": [
"public/scss/default.scss"
],
"scripts": [
"public/js/client.js"
],
"staticDirs": {
"styles": "node_modules/highlight.js/styles"
},
"modules": {
"../admin/plugins/markdown.js": "./public/js/admin.js",
"markdown.js": "./public/js/markdown.js"
},
"languages": "public/languages",
"defaultLang": "en_GB",
"templates": "./public/templates",
"settingsRoute": "/admin/plugins/markdown",
"hooks": [
{ "hook": "static:app.load", "method": "onLoad" },
{ "hook": "filter:parse.post", "method": "parsePost", "priority": 5 },
{ "hook": "filter:parse.signature", "method": "parseSignature", "priority": 5 },
{ "hook": "filter:parse.aboutme", "method": "parseAboutMe"},
{ "hook": "filter:parse.raw", "method": "parseRaw", "priority": 5 },
{ "hook": "filter:composer.help", "method": "renderHelp" },
{ "hook": "filter:admin.header.build", "method": "admin.menu" },
{ "hook": "filter:composer.formatting", "method": "registerFormatting" },
{ "hook": "filter:config.get", "method": "getConfig" },
{ "hook": "filter:meta.getLinkTags", "method": "getLinkTags"},
{ "hook": "filter:sanitize.config", "method": "updateSanitizeConfig" }
],
"upgrades": [
"upgrades/reset_md_hljs_theme.js",
"upgrades/use_unminified_hljs_theme.js"
]
}