Skip to main content

Crate fastmarkdown

Crate fastmarkdown 

Source

Re-exports§

pub use options::HtmlMode;
pub use options::MarkdownOptions;
pub use options::MathMode;
pub use theme::ThemeConfig;
pub use span::Span;
pub use span::SpanOutput;
pub use span::SpanDelta;
pub use span::SpanDeltaKind;
pub use span::FLAG_BOLD;
pub use span::FLAG_ITALIC;
pub use span::FLAG_STRIKETHROUGH;
pub use span::FLAG_INLINE_CODE;
pub use span::FLAG_IMAGE;
pub use span::FLAG_MATH;
pub use span::FLAG_SUBSCRIPT;
pub use span::FLAG_SUPERSCRIPT;
pub use span::BLOCK_PARAGRAPH;
pub use span::BLOCK_HEADING_H1;
pub use span::BLOCK_HEADING_H2;
pub use span::BLOCK_HEADING_H3;
pub use span::BLOCK_HEADING_H4;
pub use span::BLOCK_HEADING_H5;
pub use span::BLOCK_HEADING_H6;
pub use span::BLOCK_CODE;
pub use span::BLOCK_BLOCKQUOTE;
pub use span::BLOCK_LIST_ITEM_ORDERED;
pub use span::BLOCK_LIST_ITEM_UNORDERED;
pub use span::BLOCK_TABLE_CELL;
pub use span::BLOCK_TABLE_HEADER_CELL;
pub use span::BLOCK_HORIZONTAL_RULE;
pub use span::BLOCK_MATH_BLOCK;
pub use span::BLOCK_IMAGE;
pub use span::EXTRA_KIND_IMAGE_URL;
pub use span::EXTRA_KIND_CODE_LANGUAGE;
pub use span::EXTRA_KIND_TABLE_METADATA;
pub use span::EXTRA_KIND_CODE_HIGHLIGHT;
pub use span::EXTRA_KIND_LIST_META;
pub use highlight::TOKEN_OTHER;
pub use highlight::TOKEN_KEYWORD;
pub use highlight::TOKEN_STRING;
pub use highlight::TOKEN_COMMENT;
pub use highlight::TOKEN_NUMBER;
pub use highlight::TOKEN_FUNCTION;
pub use highlight::TOKEN_TYPE;
pub use highlight::TOKEN_OPERATOR;
pub use highlight::TOKEN_PUNCTUATION;
pub use highlight::TOKEN_VARIABLE;
pub use highlight::TOKEN_CONSTANT;
pub use highlight::TOKEN_BUILTIN;
pub use highlight::TOKEN_ENTITY;
pub use highlight::TOKEN_MARKUP;
pub use highlight::TOKEN_REGEX;
pub use highlight::TOKEN_TYPE_COUNT;
pub use highlight::HighlightToken;
pub use stream::StreamRenderer;
pub use spans_renderer::OwnedSpanOutput;

Modules§

ffi
highlight
html
math
options
plain
span
spans_renderer
stream
theme

Functions§

free_spans⚠
Free SpanOutput memory (for Rust API consumers)
highlight_code_serialized
to_html
Render markdown to HTML with default options
to_html_with_options
Render markdown to HTML with custom options
to_plain_text
Extract plain text from markdown
to_spans
Render markdown to structured Span output with default options
to_spans_owned
Safe version of to_spans: returns owned buffers, no unsafe free required.
to_spans_owned_with_options
Safe version of to_spans_with_options: returns owned buffers.
to_spans_with_options
Render markdown to structured Span output with custom options
version
Return the SDK version string