Skip to content

Commit de45da4

Browse files
authored
添加字数统计插件 (#15)
这是一款为docsify提供文字统计的插件
1 parent 05c14b6 commit de45da4

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

plugins.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,32 @@ docsify的分页导航插件,由[@imyelo](https://github.com/imyelo)提供。
162162

163163
[这里](https://github.com/imyelo/docsify-pagination#readme)获取更多信息。
164164

165+
## 字数统计
166+
167+
这是一款为docsify提供文字统计的插件. [@827652549](https://github.com/827652549)提供
168+
169+
它提供了统计中文汉字和英文单词的功能,并且排除了一些markdown语法的特殊字符例如*、-等
170+
171+
**Add JS**
172+
```html
173+
<script src="//unpkg.com/docsify-count/dist/countable.js"></script>
174+
```
175+
176+
**Add settings**
177+
```js
178+
window.$docsify = {
179+
count:{
180+
countable:true,
181+
fontsize:'0.9em',
182+
color:'rgb(90,90,90)',
183+
language:'chinese'
184+
}
185+
}
186+
```
187+
188+
check [document](https://github.com/827652549/docsify-count)
189+
190+
165191
## Code Fund
166192

167193
帮你快速接入[Code Fund](https://codesponsor.io/)[插件](https://github.com/njleonzhang/docsify-plugin-codefund), 由[@njleonzhang](https://github.com/njleonzhang)提供。

0 commit comments

Comments
 (0)