summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mfm/to-string.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mfm/to-string.ts b/src/mfm/to-string.ts
index 65090b103d..107929164c 100644
--- a/src/mfm/to-string.ts
+++ b/src/mfm/to-string.ts
@@ -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) {