From 561c777df898a71f8b44b25e5946b56eb1d2c106 Mon Sep 17 00:00:00 2001 From: Luffy Date: Wed, 8 Jan 2025 10:15:05 +0800 Subject: [PATCH] fix: parse heading error (#2526) --- src/plugins/search/markdown-to-txt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/search/markdown-to-txt.js b/src/plugins/search/markdown-to-txt.js index 90e042be6..c98459f2f 100644 --- a/src/plugins/search/markdown-to-txt.js +++ b/src/plugins/search/markdown-to-txt.js @@ -59,7 +59,7 @@ const markdownToTxtRenderer = { }, heading({ tokens }) { - return this.parser?.parse(tokens) || ''; + return this.parser?.parseInline(tokens) || ''; }, hr() {