ssb: Make #hashtags direct to channels.

This commit is contained in:
2024-12-01 15:32:35 -05:00
parent effb354d1b
commit 7e7b1c6ee1
4 changed files with 6 additions and 6 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 = `#q=${encodeURIComponent(link)}`;
linkNode.destination = `#${encodeURIComponent('#' + link)}`;
} else {
linkNode.destination = link;
}