mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 14:27:02 +08:00
feat: impl text delta support (#14132)
This commit is contained in:
@@ -75,10 +75,15 @@ pub fn parse_doc_to_markdown(
|
||||
doc_bin: Buffer,
|
||||
doc_id: String,
|
||||
ai_editable: Option<bool>,
|
||||
doc_url_prefix: Option<String>,
|
||||
) -> Result<NativeMarkdownResult> {
|
||||
let result =
|
||||
doc_parser::parse_doc_to_markdown(doc_bin.into(), doc_id, ai_editable.unwrap_or(false))
|
||||
.map_err(|e| Error::new(Status::GenericFailure, e.to_string()))?;
|
||||
let result = doc_parser::parse_doc_to_markdown(
|
||||
doc_bin.into(),
|
||||
doc_id,
|
||||
ai_editable.unwrap_or(false),
|
||||
doc_url_prefix,
|
||||
)
|
||||
.map_err(|e| Error::new(Status::GenericFailure, e.to_string()))?;
|
||||
Ok(result.into())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user