summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop/src-tauri/src/markdown.rs
diff options
context:
space:
mode:
authorBrendan Allan <[email protected]>2026-02-02 15:58:08 +0800
committerGitHub <[email protected]>2026-02-02 07:58:08 +0000
commit04aef44fc30d599f11ea2ada60ed63c4856a18ff (patch)
tree391c103e232d085f9322dec41d0321752d27f154 /packages/desktop/src-tauri/src/markdown.rs
parentc02dd067b2ae62553c63b087b7b48a0f46628747 (diff)
downloadopencode-04aef44fc30d599f11ea2ada60ed63c4856a18ff.tar.gz
opencode-04aef44fc30d599f11ea2ada60ed63c4856a18ff.zip
chore(desktop): integrate tauri-specta (#11740)
Diffstat (limited to 'packages/desktop/src-tauri/src/markdown.rs')
-rw-r--r--packages/desktop/src-tauri/src/markdown.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/desktop/src-tauri/src/markdown.rs b/packages/desktop/src-tauri/src/markdown.rs
index c3ca73857..39a64a431 100644
--- a/packages/desktop/src-tauri/src/markdown.rs
+++ b/packages/desktop/src-tauri/src/markdown.rs
@@ -1,4 +1,6 @@
-use comrak::{create_formatter, parse_document, Arena, Options, html::ChildRendering, nodes::NodeValue};
+use comrak::{
+ Arena, Options, create_formatter, html::ChildRendering, nodes::NodeValue, parse_document,
+};
use std::fmt::Write;
create_formatter!(ExternalLinkFormatter, {
@@ -55,6 +57,7 @@ pub fn parse_markdown(input: &str) -> String {
}
#[tauri::command]
+#[specta::specta]
pub async fn parse_markdown_command(markdown: String) -> Result<String, String> {
Ok(parse_markdown(&markdown))
}