[mastodon-client] Set class=hashtag for tags in mfm-to-html

This commit is contained in:
Laura Hausmann 2023-10-16 23:42:18 +02:00
parent 4a6d010724
commit 9c4466035e
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -103,6 +103,7 @@ export class MfmHelpers {
a.href = `${config.url}/tags/${node.props.hashtag}`;
a.textContent = `#${node.props.hashtag}`;
a.setAttribute("rel", "tag");
a.setAttribute("class", "hashtag");
return a;
},