forked from cory/tildefriends
ssb: Fix naked hashtag links (to the corresponding channel).
This commit is contained in:
@ -7,7 +7,7 @@ function textNode(text) {
|
||||
function linkNode(text, link) {
|
||||
const linkNode = new commonmark.Node('link', undefined);
|
||||
if (link.startsWith('#')) {
|
||||
linkNode.destination = `#${encodeURIComponent('#' + link)}`;
|
||||
linkNode.destination = `#${encodeURIComponent(link)}`;
|
||||
} else {
|
||||
linkNode.destination = link;
|
||||
}
|
||||
|
Reference in New Issue
Block a user