Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

471 B
Raw Blame
//! Live document Markdown through the existing lexical exporter.
use crate::domain::{models::DocumentError, text::LiveMarkdownReader};
use lexical_client::{LexicalClient, parse_markdown::MarkdownTarget};

impl LiveMarkdownReader for LexicalClient {
    async fn markdown(&self, document_id: &str) -> Result<String, DocumentError> {
        self.get_markdown(document_id, MarkdownTarget::External)
            .await
            .map_err(DocumentError::Internal)
    }
}