fix: give the underline marked extension a renderer

This commit is contained in:
silentoplayz 2026-08-28 00:18:23 -04:00
parent b3591e60b1
commit 6c4eae51c2

View file

@ -102,6 +102,10 @@ function detailsExtension() {
};
}
function underlineRenderer(this: any, token: any) {
return `<u>${this.parser.parseInline(token.tokens)}</u>`;
}
function underlineExtension() {
return {
name: 'underline',
@ -117,7 +121,8 @@ function underlineExtension() {
text: match[1],
tokens: this.lexer.inlineTokens(match[1])
};
}
},
renderer: underlineRenderer
};
}