You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ See the [Quick start](/quickstart) for more details.
15
15
- Smart full-text search plugin
16
16
- Multiple themes
17
17
- Useful plugin API
18
+
- Emoji support
18
19
- Compatible with IE10+
19
20
20
21
## Examples
@@ -24,4 +25,3 @@ Check out the [Showcase](https://github.com/QingWei-Li/docsify/#showcase) to doc
24
25
## Donate
25
26
26
27
Please consider donating if you think docsify is helpful to you or that my work is valuable. I am happy if you can help me [buy a cup of coffee](https://github.com/QingWei-Li/donate). :heart:
A plugin is simply a function that takes `hook` as arguments.
67
-
The hook supports handling asynchronous tasks.
68
-
69
-
#### Full configuration
70
-
71
-
```js
72
-
window.$docsify= {
73
-
plugins: [
74
-
function (hook, vm) {
75
-
hook.init(function() {
76
-
// Called when the script starts running, only trigger once, no arguments,
77
-
})
63
+
The default is to support parsing emoji. For example `:100:` will be parsed to :100:. But it is not precise because there is no matching non-emoji string. If you need to correctly parse the emoji string, you need install this plugin.
78
64
79
-
hook.beforeEach(function(content) {
80
-
// Invoked each time before parsing the Markdown file.
81
-
// ...
82
-
return content
83
-
})
84
65
85
-
hook.afterEach(function(html, next) {
86
-
// Invoked each time after the Markdown file is parsed.
87
-
// beforeEach and afterEach support asynchronous。
88
-
// ...
89
-
// call `next(html)` when task is done.
90
-
next(html)
91
-
})
92
-
93
-
hook.doneEach(function() {
94
-
// Invoked each time after the data is fully loaded, no arguments,
95
-
// ...
96
-
})
97
-
98
-
hook.mounted(function() {
99
-
// Called after initial completion. Only trigger once, no arguments.
0 commit comments