Skip to content

Commit a84cead

Browse files
authored
add plugin "words countable"
This is a plugin to add word count for markdown files of docsify.
1 parent 9e62be9 commit a84cead

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/plugins.md

+25
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,31 @@ A docsify.js plugin for displaying tabbed content from markdown.
192192

193193
Provided by [@jhildenbiddle](https://github.com/jhildenbiddle/docsify-tabs).
194194

195+
## Words Countable
196+
197+
This is a plugin to add word count for markdown files of docsify.Provided by [@827652549](https://github.com/827652549)
198+
199+
It only counts Chinese characters and English words excludes special characters like `*``-``……` in markdown file.
200+
201+
**Add JS**
202+
```html
203+
<script src="//unpkg.com/docsify-count/dist/countable.js"></script>
204+
```
205+
206+
**Add settings**
207+
```js
208+
window.$docsify = {
209+
count:{
210+
countable:true,
211+
fontsize:'0.9em',
212+
color:'rgb(90,90,90)',
213+
language:'chinese'
214+
}
215+
}
216+
```
217+
218+
check [document](https://github.com/827652549/docsify-count)
219+
195220
## More plugins
196221

197222
See [awesome-docsify](awesome?id=plugins)

0 commit comments

Comments
 (0)