Skip to main content

Crate liepress

Crate liepress 

Source

Re-exports§

pub use render::PageRenderer;
pub use render::PdfDocumentGenerator;
pub use render::PdfRenderer;
pub use render::PixmapDocumentGenerator;
pub use render::PixmapRenderer;
pub use render::SvgDocumentGenerator;
pub use render::SvgRenderer;
pub use ast::PageConfig;
pub use html::markdown_to_html;
pub use html::markdown_to_html_document;

Modules§

ast
样式系统模块
css
CSS 样式引擎模块
error
generator
文档生成器模块
html
HTML 处理模块
render
渲染模块 - 提供多种渲染后端
text
visual
视觉元素模块 - 纯数据描述,与渲染后端解耦

Structs§

ConvertOptions
Markdown 转换配置

Functions§

html_file_to_pdf
HTML 文件 → PDF(自动将本地图片嵌入为 base64)
html_file_to_png
HTML 文件 → PNG(自动将本地图片嵌入为 base64)
html_file_to_svg
HTML 文件 → SVG(自动将本地图片嵌入为 base64)
html_to_pdf
HTML → PDF 转换
html_to_png
HTML → PNG 转换
html_to_svg
HTML → SVG 转换
markdown_file_to_pdf
Markdown 文件 → PDF(自动将本地图片嵌入为 base64)
markdown_file_to_png
Markdown 文件 → PNG(自动将本地图片嵌入为 base64)
markdown_file_to_svg
Markdown 文件 → SVG(自动将本地图片嵌入为 base64)
markdown_to_pdf
核心转换逻辑:Markdown → PDF
markdown_to_png
核心转换逻辑:Markdown → PNG
markdown_to_svg
核心转换逻辑:Markdown → SVG