use bytes::Bytes;
use serde::{Deserialize, Serialize};
pub use html_to_markdown_rs::{
CodeBlockStyle, HeadingStyle, HighlightStyle, ListIndentType, NewlineStyle, PreprocessingOptions,
PreprocessingPreset, WhitespaceMode,
};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct HtmlExtractionResult {
pub markdown: String,
pub images: Vec<ExtractedInlineImage>,
pub warnings: Vec<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ExtractedInlineImage {
pub data: Bytes,
pub format: String,
pub filename: Option<String>,
pub description: Option<String>,
pub dimensions: Option<(u32, u32)>,
pub attributes: Vec<(String, String)>,
}