diff --git a/src/mfm/parse/elements/code.ts b/src/mfm/parse/elements/code.ts index 04ce692ce1..3c97fc1d99 100644 --- a/src/mfm/parse/elements/code.ts +++ b/src/mfm/parse/elements/code.ts @@ -19,6 +19,6 @@ export default function(text: string) { type: 'code', content: code, code: match[1], - html: genHtml(match[1]) + html: genHtml(match[1].trim()) } as TextElementCode; }