Skip to content

Commit 59b31a1

Browse files
committed
Remove unused markdown-it-emoji
use emoji markdown-it plugin implemented in 2063eb Signed-off-by: Yukai Huang <[email protected]>
1 parent caf4ac6 commit 59b31a1

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
"markdown-it-abbr": "~1.0.4",
8686
"markdown-it-container": "~2.0.0",
8787
"markdown-it-deflist": "~2.0.3",
88-
"markdown-it-emoji": "~1.4.0",
8988
"markdown-it-footnote": "~3.0.2",
9089
"markdown-it-imsize": "~2.0.1",
9190
"markdown-it-ins": "~2.0.0",
@@ -107,10 +106,10 @@
107106
"mysql": "~2.17.1",
108107
"mysql2": "^2.0.1",
109108
"passport": "~0.4.0",
109+
"passport-bitbucket-oauth2": "~0.1.2",
110110
"passport-dropbox-oauth2": "~1.1.0",
111111
"passport-facebook": "~2.1.1",
112112
"passport-github": "~1.1.0",
113-
"passport-bitbucket-oauth2": "~0.1.2",
114113
"passport-gitlab2": "~4.0.0",
115114
"passport-google-oauth20": "~1.0.0",
116115
"passport-ldapauth": "~2.1.3",

public/js/extra.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,10 +1057,6 @@ md.use(require('markdown-it-mathjax')({
10571057
md.use(require('markdown-it-imsize'))
10581058
md.use(require('markdown-it-ruby'))
10591059

1060-
md.use(require('markdown-it-emoji'), {
1061-
shortcuts: {}
1062-
})
1063-
10641060
window.emojify.setConfig({
10651061
blacklist: {
10661062
elements: ['script', 'textarea', 'a', 'pre', 'code', 'svg'],
@@ -1070,8 +1066,6 @@ window.emojify.setConfig({
10701066
ignore_emoticons: true
10711067
})
10721068

1073-
md.renderer.rules.emoji = (token, idx) => window.emojify.replace(`:${token[idx].markup}:`)
1074-
10751069
function renderContainer (tokens, idx, options, env, self) {
10761070
tokens[idx].attrJoin('role', 'alert')
10771071
tokens[idx].attrJoin('class', 'alert')

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7946,11 +7946,6 @@ markdown-it-deflist@~2.0.3:
79467946
resolved "https://registry.yarnpkg.com/markdown-it-deflist/-/markdown-it-deflist-2.0.3.tgz#5727db04184d3cb2bc6ee4a9641e3a1091d5fd6f"
79477947
integrity sha512-/BNZ8ksW42bflm1qQLnRI09oqU2847Z7MVavrR0MORyKLtiUYOMpwtlAfMSZAQU9UCvaUZMpgVAqoS3vpToJxw==
79487948

7949-
markdown-it-emoji@~1.4.0:
7950-
version "1.4.0"
7951-
resolved "https://registry.yarnpkg.com/markdown-it-emoji/-/markdown-it-emoji-1.4.0.tgz#9bee0e9a990a963ba96df6980c4fddb05dfb4dcc"
7952-
integrity sha1-m+4OmpkKljupbfaYDE/dsF37Tcw=
7953-
79547949
markdown-it-footnote@~3.0.2:
79557950
version "3.0.2"
79567951
resolved "https://registry.yarnpkg.com/markdown-it-footnote/-/markdown-it-footnote-3.0.2.tgz#1575ee7a093648d4e096aa33386b058d92ac8bc1"

0 commit comments

Comments
 (0)