4 releases
Uses new Rust 2024
new 0.2.2 | Apr 30, 2025 |
---|---|
0.2.1 | Apr 29, 2025 |
0.2.0 | Apr 28, 2025 |
0.1.0 | Apr 28, 2025 |
#922 in Parser implementations
79 downloads per month
44KB
894 lines
notion-to-jarkup
Convert Notion blocks into jarkup JSON.
Example
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
dotenvy::dotenv().ok();
let notion_api_key = std::env::var("NOTION_API_KEY")?;
let block_id = std::env::var("BLOCK_ID")?;
let notionrs_client = notionrs::client::Client::new().secret(notion_api_key);
let reqwest_client = reqwest::Client::new();
let client = notion_to_jarkup::client::Client {
notionrs_client,
reqwest_client,
};
let result = client.convert_block(&block_id).await?;
println!("{}", serde_json::to_string(&result).unwrap());
Ok(())
}
Dependencies
~8–21MB
~282K SLoC