Skip to content

Commit fc5c451

Browse files
authored
Merge branch 'develop' into edit
2 parents a5c2413 + c24f7f6 commit fc5c451

File tree

6 files changed

+54
-52
lines changed

6 files changed

+54
-52
lines changed

docs/plugins.md

+2
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ Pagination for docsify. By [@imyelo](https://github.com/imyelo)
187187
<script src="//cdn.jsdelivr.net/npm/docsify-pagination/dist/docsify-pagination.min.js"></script>
188188
```
189189

190+
Click [here](https://github.com/imyelo/docsify-pagination#readme) to get more information.
191+
190192
## Tabs
191193

192194
A docsify.js plugin for displaying tabbed content from markdown.

package-lock.json

+44-44
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"*.js": "eslint --fix"
5555
},
5656
"dependencies": {
57-
"dompurify": "^2.2.6",
57+
"dompurify": "^2.2.7",
5858
"marked": "^1.2.9",
5959
"medium-zoom": "^1.0.6",
6060
"opencollective-postinstall": "^2.0.2",

packages/docsify-server-renderer/package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/docsify-server-renderer/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"dependencies": {
1818
"debug": "^4.3.2",
1919
"docsify": "^4.12.1",
20-
"dompurify": "^2.2.6",
20+
"dompurify": "^2.2.7",
2121
"node-fetch": "^2.6.0",
2222
"resolve-pathname": "^3.0.0"
2323
}

src/plugins/search/search.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export function search(query) {
178178
keywords.forEach(keyword => {
179179
// From https://github.com/sindresorhus/escape-string-regexp
180180
const regEx = new RegExp(
181-
ignoreDiacriticalMarks(keyword).replace(
181+
escapeHtml(ignoreDiacriticalMarks(keyword)).replace(
182182
/[|\\{}()[\]^$+*?.]/g,
183183
'\\$&'
184184
),
@@ -187,10 +187,10 @@ export function search(query) {
187187
let indexTitle = -1;
188188
let indexContent = -1;
189189
handlePostTitle = postTitle
190-
? ignoreDiacriticalMarks(postTitle)
190+
? escapeHtml(ignoreDiacriticalMarks(postTitle))
191191
: postTitle;
192192
handlePostContent = postContent
193-
? ignoreDiacriticalMarks(postContent)
193+
? escapeHtml(ignoreDiacriticalMarks(postContent))
194194
: postContent;
195195

196196
indexTitle = postTitle ? handlePostTitle.search(regEx) : -1;

0 commit comments

Comments
 (0)