✌️
This commit is contained in:
parent
025974c0fe
commit
e47ebf9632
1 changed files with 5 additions and 3 deletions
|
@ -24,9 +24,11 @@ const handlers = {
|
||||||
},
|
},
|
||||||
|
|
||||||
hashtag({ document }, { hashtag }) {
|
hashtag({ document }, { hashtag }) {
|
||||||
const span = document.createElement('span');
|
const a = document.createElement('a');
|
||||||
span.textContent = '#' + hashtag;
|
a.href = config.url + '/search?q=#' + hashtag;
|
||||||
document.body.appendChild(span);
|
a.textContent = '#' + hashtag;
|
||||||
|
a.setAttribute('rel', 'tag');
|
||||||
|
document.body.appendChild(a);
|
||||||
},
|
},
|
||||||
|
|
||||||
'inline-code'({ document }, { code }) {
|
'inline-code'({ document }, { code }) {
|
||||||
|
|
Loading…
Reference in a new issue