From ed48aa1e72ab3ddcea7cc1acd17c9a7ce6caee7e Mon Sep 17 00:00:00 2001 From: Stephen Hutchings Date: Sat, 22 Apr 2023 17:17:35 +1000 Subject: [PATCH] chore(docs): update renderer docs (#2783) --- docs/USING_PRO.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/USING_PRO.md b/docs/USING_PRO.md index dbb8e7a9..4c4b6609 100644 --- a/docs/USING_PRO.md +++ b/docs/USING_PRO.md @@ -60,7 +60,7 @@ Marked provides methods for directly overriding the `renderer` and `tokenizer` f

The Renderer : renderer

-The renderer defines the HTML output of a given token. If you supply a `renderer` object to the Marked options, it will be merged with the built-in renderer and any functions inside will override the default handling of that token type. +The renderer defines the HTML output of a given token. If you supply a `renderer` in the options object passed to `marked.use()`, any functions in the object will override the default handling of that token type. Calling `marked.use()` to override the same function multiple times will give priority to the version that was assigned *last*. Overriding functions can return `false` to fall back to the previous override in the sequence, or resume default behavior if all overrides return `false`. Returning any other value (including nothing) will prevent fallback behavior.