diff --git a/src/text/html.ts b/src/text/html.ts
index 58038bc31b..53d4e8a52d 100644
--- a/src/text/html.ts
+++ b/src/text/html.ts
@@ -24,9 +24,11 @@ const handlers = {
},
hashtag({ document }, { hashtag }) {
- const span = document.createElement('span');
- span.textContent = '#' + hashtag;
- document.body.appendChild(span);
+ const a = document.createElement('a');
+ a.href = config.url + '/search?q=#' + hashtag;
+ a.textContent = '#' + hashtag;
+ a.setAttribute('rel', 'tag');
+ document.body.appendChild(a);
},
'inline-code'({ document }, { code }) {