cmark-writer 0.7.0

A CommonMark writer implementation in Rust for serializing AST nodes to CommonMark format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Abstract Syntax Tree for CommonMark document structure.
//!
//! This module defines various node types for representing CommonMark documents,
//! including headings, paragraphs, lists, code blocks, etc.

mod custom;
mod html;
mod node;
pub mod tables;

pub use self::custom::{CustomNode, CustomNodeWriter};
pub use self::html::{escape_html, safe_html, HtmlAttribute, HtmlElement};
pub use self::node::{CodeBlockType, HeadingType, ListItem, Node};

// Re-export GFM specific types when the GFM feature is enabled
#[cfg(feature = "gfm")]
pub use self::node::{TableAlignment, TaskListStatus};