refactor(desktop): move markdown rendering to rust (#10000)
This commit is contained in:
parent
7b0ad87781
commit
c737776958
9 changed files with 237 additions and 5 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue