1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-27 06:18:40 +09:00

Fix toHtml (#6824)

This commit is contained in:
MeiMei 2020-11-10 21:00:14 +09:00 committed by GitHub
parent c9fcfc6862
commit ed46c1486c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ export function toHtml(tokens: MfmForest | null, mentionedRemoteUsers: IMentione
blockCode(token) {
const pre = doc.createElement('pre');
const inner = doc.createElement('code');
inner.innerHTML = token.node.props.code;
inner.textContent = token.node.props.code;
pre.appendChild(inner);
return pre;
},