Add community link class

This commit is contained in:
Zetaphor 2023-06-22 01:07:33 -03:00
parent 92482cbe6b
commit 02717be15c

View file

@ -111,7 +111,10 @@ function localCommunityLinkParser(md) {
beforeToken.content = beforeContent; beforeToken.content = beforeContent;
const linkOpenToken = new state.Token("link_open", "a", 1); 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); const textToken = new state.Token("text", "", 0);
textToken.content = match; textToken.content = match;