//! Markdown processing utilities

use rustelo_core::Result;

/// Markdown processor
pub struct MarkdownProcessor {
    // TODO: Add configuration options
}

impl MarkdownProcessor {
    /// Create a new markdown processor
    pub fn new() -> Self {
        Self {}
    }

    /// Process markdown to HTML
    pub fn process(&self, markdown: &str) -> Result<String> {
        // TODO: Implement actual markdown processing with pulldown-cmark
        Ok(format!("<p>{}</p>", markdown.replace('\n', "<br>")))
    }

    /// Process markdown with syntax highlighting
    pub fn process_with_highlight(&self, markdown: &str) -> Result<String> {
        // TODO: Implement syntax highlighting with syntect
        self.process(markdown)
    }
}

impl Default for MarkdownProcessor {
    fn default() -> Self {
        Self::new()
    }
}
