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/USING_PRO.md
+41
Original file line number
Diff line number
Diff line change
@@ -261,6 +261,8 @@ Hooks are methods that hook into some part of marked. The following hooks are av
261
261
|`preprocess(markdown: string): string`| Process markdown before sending it to marked. |
262
262
|`postprocess(html: string): string`| Process html after marked has finished parsing. |
263
263
|`processAllTokens(tokens: Token[]): Token[]`| Process all tokens before walk tokens. |
264
+
|`provideLexer(): (src: string, options?: MarkedOptions) => Token[]`| Provide function to tokenize markdown. |
265
+
|`provideParser(): (tokens: Token[], options?: MarkedOptions) => string`| Provide function to parse tokens. |
264
266
265
267
`marked.use()` can be called multiple times with different `hooks` functions. Each function will be called in order, starting with the function that was assigned *last*.
0 commit comments