Commit fda7fa5
authored
Add memo for processor to
Some plugins may perform heavy work in preparation to make the
transformer light-weight. A good example of this is
`rehype-starry-night`.
Without this change, an interactive markdown editor which includes
`rehype-starry-night` is very sluggish. With this change, performance is
as good as if `rehype-starry-night` isn’t even used.
Closes GH-909.
Reviewed-by: JounQin <[email protected]>
Reviewed-by: Titus Wormer <[email protected]>MarkdownHooks
1 parent 8545ebd commit fda7fa5
1 file changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
216 | 221 | | |
217 | 222 | | |
218 | 223 | | |
| |||
238 | 243 | | |
239 | 244 | | |
240 | 245 | | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
| 246 | + | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| |||
0 commit comments