From c10f7290486ed333b04aff922207a1c4ba8cfdf6 Mon Sep 17 00:00:00 2001 From: KazooTTT Date: Tue, 2 Apr 2024 16:40:38 +0800 Subject: [PATCH] fix: render md to html string correctly (#11) fix: render md to html string --- .vitepress/theme/components/Route.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.vitepress/theme/components/Route.vue b/.vitepress/theme/components/Route.vue index ad51754dc..8573518d6 100644 --- a/.vitepress/theme/components/Route.vue +++ b/.vitepress/theme/components/Route.vue @@ -41,7 +41,7 @@ {{ item.replace(/:|\?|\+|\*/g, '') }},{{ ' ' }} required - {{ ' ' }} - {{ renderMarkdown(data.parameters?.[item.replace(/:|\?|\+|\*/g, '')] || '') }} + @@ -52,7 +52,7 @@ {{ item.name }},{{ ' ' }} {{ item.optional ? 'optional' : 'required' }} {{ ' - ' }} - {{ renderMarkdown(item.description) }} +