We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66b2c53 commit 31fa451Copy full SHA for 31fa451
src/lib/output/themes/MarkedPlugin.tsx
@@ -272,6 +272,9 @@ export class MarkedPlugin extends ContextAwareRendererComponent {
272
// that becomes a real thing.
273
if (this.markdownLinkExternal && /https?:\/\//i.test(href)) {
274
token.attrSet("target", "_blank");
275
+ const classes = token.attrGet("class")?.split(" ") || [];
276
+ classes.push("external");
277
+ token.attrSet("class", classes.join(" "));
278
}
279
280
token.attrSet("href", href);
0 commit comments