mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 14:21:13 +00:00
Add community link class
This commit is contained in:
parent
92482cbe6b
commit
02717be15c
1 changed files with 4 additions and 1 deletions
|
@ -111,7 +111,10 @@ function localCommunityLinkParser(md) {
|
|||
beforeToken.content = beforeContent;
|
||||
|
||||
const linkOpenToken = new state.Token("link_open", "a", 1);
|
||||
linkOpenToken.attrs = [["href", url]];
|
||||
linkOpenToken.attrs = [
|
||||
["href", url],
|
||||
["class", "community-link"],
|
||||
];
|
||||
|
||||
const textToken = new state.Token("text", "", 0);
|
||||
textToken.content = match;
|
||||
|
|
Loading…
Reference in a new issue