This commit is contained in:
G30 2026-08-28 00:19:37 -04:00 committed by GitHub
commit d0731ec65c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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
};
}