diff --git a/src/mfm/parse/elements/code.ts b/src/mfm/parse/elements/code.ts index 04ce692ce..3c97fc1d9 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; }