nyaizeが適用されるとMFMのオプションが失われるのを修正 Fix #6370 (#6371)

This commit is contained in:
MeiMei
2020-05-16 08:40:17 +09:00
committed by GitHub
parent 36fcc0d5f6
commit 3ac3a45aa5
2 changed files with 73 additions and 1 deletions

View File

@ -39,7 +39,9 @@ export function toString(tokens: MfmForest | null, opts?: RestoreOptions): strin
},
spin(token, opts) {
return `<spin>${appendChildren(token.children, opts)}</spin>`;
const attr = token.node.props?.attr;
const post = attr ? ` ${attr}` : '';
return `<spin${post}>${appendChildren(token.children, opts)}</spin>`;
},
jump(token, opts) {