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 `