refactor(desktop): move markdown rendering to rust (#10000)

This commit is contained in:
Shoubhit Dash 2026-01-22 16:18:39 +05:30 committed by GitHub
commit c737776958
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 237 additions and 5 deletions

View file

@ -316,6 +316,10 @@ const createPlatform = (password: Accessor<string | null>): Platform => ({
setDefaultServerUrl: async (url: string | null) => {
await invoke("set_default_server_url", { url })
},
parseMarkdown: async (markdown: string) => {
return invoke<string>("parse_markdown_command", { markdown })
},
})
createMenu()