1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#![no_std]
//! `linemd` is a simple markdown parsing library.

extern crate alloc;
use alloc::{string::String, vec::Vec};

/// Parser types used to parse markdown.
pub mod parser;
#[cfg(test)]
mod tests;

/// HTML rendering of tokens.
#[cfg(feature = "html")]
pub mod html;
/// SVG rendering of tokens.
#[cfg(feature = "svg")]
pub mod svg;

#[doc(inline)]
pub use parser::Parser;

#[cfg(feature = "svg")]
#[doc(inline)]
pub use svg::{render_as_svg, Config as SvgConfig, ViewportDimensions as SvgViewportDimensions};

#[cfg(feature = "html")]
#[doc(inline)]
pub use html::render_as_html;