Implement local Markdown GFM parser and live refresh

This commit is contained in:
lix-2026
2026-05-08 10:57:24 +08:00
parent e082e71b5d
commit b183d24ba5
8 changed files with 1354 additions and 745 deletions
@@ -520,7 +520,12 @@ pub async fn save(
WebError::bad_request_code("local_folder_root_required", "缺少本地文件夹 rootUri")
.with_context(&context)
})?;
let result = save_local_markdown_page(root_uri, document_id, &body.content)?;
let result = save_local_markdown_page(
root_uri,
document_id,
body.conflict_detection_key.as_deref(),
&body.content,
)?;
return Ok(ok_response(&context, result));
}
let effective_workspace_id =