Expand description
Markdown codec for HwpForge.
This crate provides a bidirectional bridge between Markdown and the format-agnostic Core DOM:
- Decode: Markdown + Template ->
Document<Draft> - Encode (lossy):
Document<Validated>-> readable GFM - Encode (lossless):
Document<Validated>-> frontmatter + HTML-like markup
§Architecture
foundation (indices, units)
|
v
core (Document DOM)
|
v
blueprint (Template, StyleRegistry)
|
v
smithy-md (THIS CRATE)Re-exports§
pub use error::MdError;pub use error::MdErrorCode;pub use error::MdResult;pub use frontmatter::Frontmatter;
Modules§
- error
- Error types for the Markdown Smithy.
- frontmatter
- YAML frontmatter parsing and rendering.
Structs§
- MdDecoder
- Markdown decoder.
- MdDocument
- Result of decoding markdown, containing both the document and the
StyleRegistryresolved from the template. - MdEncoder
- Markdown encoder entrypoint.