From ead7af34a503dc039196dcad710ab17f6b67e711 Mon Sep 17 00:00:00 2001 From: Tony Brix Date: Tue, 6 Aug 2024 21:28:11 -0600 Subject: [PATCH] docs: fix heading renderer example (#3392) --- docs/USING_PRO.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/USING_PRO.md b/docs/USING_PRO.md index fa873791cd..c4b24f1cec 100644 --- a/docs/USING_PRO.md +++ b/docs/USING_PRO.md @@ -72,7 +72,8 @@ import { marked } from 'marked'; // Override function const renderer = { - heading(text, depth) { + heading({ tokens, depth }) { + const text = this.parser.parseInline(tokens); const escapedText = text.toLowerCase().replace(/[^\w]+/g, '-'); return `