Merge pull request #1589 from rinsuki/fix/1428

fix #1428
This commit is contained in:
syuilo 2018-05-17 08:16:10 +09:00 committed by GitHub
commit 05dd381502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
import { lib as emojilib } from 'emojilib';
import { JSDOM } from 'jsdom';
import config from '../config';
const handlers = {
bold({ document }, { bold }) {
@ -43,7 +44,7 @@ const handlers = {
mention({ document }, { content }) {
const a = document.createElement('a');
a.href = '/' + content;
a.href = `${config.url}/${content}`;
a.textContent = content;
document.body.appendChild(a);
},