ssb: Fix naked hashtag links (to the corresponding channel).

This commit is contained in:
2025-01-04 13:03:58 -05:00
parent 763f7d45d8
commit 1ed066ef0f
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}