notion2md 0.1.0-alpha.3

A Rust library for converting Notion pages to Markdown
Documentation
use crate::{converters::Converters, notion_to_md::NotionToMarkdown};
use notion_client::endpoints::Client;

pub struct NotionToMarkdownBuilder {
    client: Client,
    pub converters: Converters,
}

impl NotionToMarkdownBuilder {
    pub fn new(client: Client) -> Self {
        Self {
            client,
            converters: Converters::default(),
        }
    }

    pub fn build(self) -> NotionToMarkdown {
        NotionToMarkdown::new(self.client, self.converters)
    }
}