diff --git a/moonbit-tour/dev/generate-plugin.ts b/moonbit-tour/dev/generate-plugin.ts index 49f01221..e4a2fbef 100644 --- a/moonbit-tour/dev/generate-plugin.ts +++ b/moonbit-tour/dev/generate-plugin.ts @@ -21,7 +21,11 @@ const generatePlugin = (): vite.Plugin => { .replace("%HEAD%", head) .replace("%TITLE%", `${l.lesson} - MoonBit Language Tour`) .replace("%MARKDOWN%", l.markdown) - .replace("%CODE%", l.code); + .replace("%CODE%", l.code) + .replace( + ' ', + "", + ); if (i === 0) { res = res.replace("%BACK%", `Back`); }