diff --git a/README.md b/README.md
index 6e99445..7700c08 100644
--- a/README.md
+++ b/README.md
@@ -74,24 +74,14 @@ npm i && npm run dev
open http://localhost:3000
```
-### MoreLanguageHighlight
+### More Language Highlight
-By default,docsify will only highlight faw language ,such as `html`,`css`,`javascript` eg.
-if u want to add more ,like php. just edit `src/render.js` ,and then add a language import.
-
-```javacript
-import marked from 'marked'
-import Prism from 'prismjs'
-//this line ↓
-import prism_php from 'prismjs/components/prism-php'
-// or
-import prism_ruby from 'prismjs/components/prism-ruby'
-// and so on...
-import prism_markdown from 'prismjs/components/prism-markdown'
-import * as tpl from './tpl'
+```html
+
+
+
```
-
## License
MIT
diff --git a/src/render.js b/src/render.js
index f0168e8..c2e144c 100644
--- a/src/render.js
+++ b/src/render.js
@@ -10,6 +10,7 @@ const CACHE = {}
const renderTo = function (dom, content) {
dom = typeof dom === 'object' ? dom : document.querySelector(dom)
dom.innerHTML = content
+ slugify.clear()
return dom
}
diff --git a/src/util.js b/src/util.js
index c5e381b..8d53176 100644
--- a/src/util.js
+++ b/src/util.js
@@ -110,6 +110,7 @@ export function slugify (string) {
const re = /[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,.\/:;<=>?@\[\]^`{|}~]/g
const maintainCase = false
const replacement = '-'
+
slugify.occurrences = slugify.occurrences || {}
if (typeof string !== 'string') return ''
@@ -134,3 +135,7 @@ export function slugify (string) {
return slug
}
+
+slugify.clear = function () {
+ slugify.occurrences = {}
+}