Do not highlight usernames inside links (#366)

sweet!

* Do not highlight usernames  inside words

Fixes #156

* Do not search on separate words

* Add accuracy options to markjs
This commit is contained in:
Matt Steele
2020-11-17 19:29:03 -06:00
committed by GitHub
parent f8d94c2dc2
commit aeb221b32f
10 changed files with 29714 additions and 19 deletions

2
build/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
node_modules
web_modules

View File

@@ -1467,6 +1467,11 @@
"global": "^4.3.2"
}
},
"mark.js": {
"version": "8.11.1",
"resolved": "https://registry.npmjs.org/mark.js/-/mark.js-8.11.1.tgz",
"integrity": "sha1-GA8fnr74sOY45BZq1S24eb6y/8U="
},
"mdn-data": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.4.tgz",

View File

@@ -6,12 +6,13 @@
"dependencies": {
"@joeattardi/emoji-button": "^4.5.0",
"@justinribeiro/lite-youtube": "^0.9.1",
"@videojs/http-streaming": "2.3.0",
"@videojs/themes": "^1.0.1",
"htm": "^3.0.4",
"mark.js": "^8.11.1",
"preact": "^10.5.7",
"tailwindcss": "^1.9.6",
"video.js": "7.10.2",
"@videojs/http-streaming": "2.3.0"
"video.js": "7.10.2"
},
"devDependencies": {
"cssnano": "^4.1.10",
@@ -27,6 +28,7 @@
"@justinribeiro/lite-youtube",
"htm",
"preact",
"mark.js/dist/mark.es6.min.js",
"tailwindcss/dist/tailwind.min.css"
],
"alias": {