Add new MFM syntax

This commit is contained in:
syuilo
2018-08-05 12:33:51 +09:00
parent f762cf2770
commit cd28504dd8
5 changed files with 50 additions and 2 deletions

View File

@@ -18,6 +18,12 @@ const handlers: { [key: string]: (window: any, token: any, mentionedRemoteUsers:
document.body.appendChild(b);
},
motion({ document }, { big }) {
const b = document.createElement('strong');
b.textContent = big;
document.body.appendChild(b);
},
code({ document }, { code }) {
const pre = document.createElement('pre');
const inner = document.createElement('code');