fix: give the underline marked extension a renderer (#29118)
This commit is contained in:
1 file changed
+6
-1
@@ -102,6 +102,10 @@ function detailsExtension() {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function underlineRenderer(this: any, token: any) {
|
||||||
|
return `<u>${this.parser.parseInline(token.tokens)}</u>`;
|
||||||
|
}
|
||||||
|
|
||||||
function underlineExtension() {
|
function underlineExtension() {
|
||||||
return {
|
return {
|
||||||
name: 'underline',
|
name: 'underline',
|
||||||
@@ -117,7 +121,8 @@ function underlineExtension() {
|
|||||||
text: match[1],
|
text: match[1],
|
||||||
tokens: this.lexer.inlineTokens(match[1])
|
tokens: this.lexer.inlineTokens(match[1])
|
||||||
};
|
};
|
||||||
}
|
},
|
||||||
|
renderer: underlineRenderer
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user