From: Zetaphor Date: Thu, 22 Jun 2023 04:07:33 +0000 (-0300) Subject: Add community link class X-Git-Url: http://these/git/%7B%60%24%7BghostArchiveUrl%7D/static/readmes/README.ru.md?a=commitdiff_plain;h=02717be15c7aa94f6ef5e6fd1ecb97ac61d85ad6;p=lemmy-ui.git Add community link class --- diff --git a/src/shared/markdown.ts b/src/shared/markdown.ts index c837dba..6e6b504 100644 --- a/src/shared/markdown.ts +++ b/src/shared/markdown.ts @@ -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;