From 6c4eae51c214d08ee228932595dbb0138d611f51 Mon Sep 17 00:00:00 2001 From: silentoplayz Date: Fri, 28 Aug 2026 00:18:23 -0400 Subject: [PATCH] fix: give the underline marked extension a renderer --- src/lib/utils/marked/extension.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/utils/marked/extension.ts b/src/lib/utils/marked/extension.ts index c3f69faada..d82f70578e 100644 --- a/src/lib/utils/marked/extension.ts +++ b/src/lib/utils/marked/extension.ts @@ -102,6 +102,10 @@ function detailsExtension() { }; } +function underlineRenderer(this: any, token: any) { + return `${this.parser.parseInline(token.tokens)}`; +} + function underlineExtension() { return { name: 'underline', @@ -117,7 +121,8 @@ function underlineExtension() { text: match[1], tokens: this.lexer.inlineTokens(match[1]) }; - } + }, + renderer: underlineRenderer }; }