Use minified discord-markdown
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Cadence Ember 2020-11-26 01:10:54 +13:00
parent 69a9e2ed2f
commit 6297350418
Signed by: cadence
GPG Key ID: BC1C2C61CF521B17
3 changed files with 4 additions and 5 deletions

5
package-lock.json generated
View File

@ -1791,10 +1791,9 @@
}
},
"discord-markdown": {
"version": "git+https://git.sr.ht/~cadence/nodejs-discord-markdown#e5d0a953764cd8e8e0f7ea84c93a882fe16f6e3d",
"from": "git+https://git.sr.ht/~cadence/nodejs-discord-markdown#e5d0a953764cd8e8e0f7ea84c93a882fe16f6e3d",
"version": "git+https://git.sr.ht/~cadence/nodejs-discord-markdown#5ad8046d8d62a7fb8047e1a697c3848744d4e64d",
"from": "git+https://git.sr.ht/~cadence/nodejs-discord-markdown#5ad8046d8d62a7fb8047e1a697c3848744d4e64d",
"requires": {
"highlight.js": "^10.3.2",
"simple-markdown": "^0.7.2"
}
},

View File

@ -16,7 +16,7 @@
"@babel/preset-env": "^7.11.0",
"browserify": "^17.0.0",
"chalk": "^4.1.0",
"discord-markdown": "git+https://git.sr.ht/~cadence/nodejs-discord-markdown#e5d0a953764cd8e8e0f7ea84c93a882fe16f6e3d",
"discord-markdown": "git+https://git.sr.ht/~cadence/nodejs-discord-markdown#5ad8046d8d62a7fb8047e1a697c3848744d4e64d",
"dompurify": "^2.2.0",
"highlight.js": "^10.3.2",
"http-server": "^0.12.3",

View File

@ -2,7 +2,7 @@ const {q} = require("./basic.js")
const {store} = require("./store/store.js")
const lsm = require("./lsm.js")
const {chat} = require("./chat.js")
const {toHTML} = require("discord-markdown")
const {toHTML} = require("discord-markdown/dist/discord-markdown.min.js")
const input = q("#c-chat-textarea")