mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
[mastodon-client] Set class=hashtag for tags in mfm-to-html
This commit is contained in:
parent
4a6d010724
commit
9c4466035e
1 changed files with 1 additions and 0 deletions
|
@ -103,6 +103,7 @@ export class MfmHelpers {
|
||||||
a.href = `${config.url}/tags/${node.props.hashtag}`;
|
a.href = `${config.url}/tags/${node.props.hashtag}`;
|
||||||
a.textContent = `#${node.props.hashtag}`;
|
a.textContent = `#${node.props.hashtag}`;
|
||||||
a.setAttribute("rel", "tag");
|
a.setAttribute("rel", "tag");
|
||||||
|
a.setAttribute("class", "hashtag");
|
||||||
return a;
|
return a;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue