Skip to content

Commit

Permalink
fix: code render trimEnd
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Jul 18, 2024
1 parent ee11ca1 commit ef5ae0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/src/lib/parse-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@ export const parseHtml = async (
}

if (!codeString) return null

return createElement(ShikiHighLighter, {
code: codeString,
code: codeString.trimEnd(),
language: language.toLowerCase(),
})
},
Expand Down

0 comments on commit ef5ae0f

Please sign in to comment.