Skip to main content

Module render

Module render 

Source
Expand description

Output-format renderers and string conversion helpers. Rendering utilities for Citum templates.

This module provides the logic to transform processed template components into formatted strings. It supports multiple output formats through a pluggable architecture defined by the crate::render::format::OutputFormat trait.

§Modules

  • format: Defines the core crate::render::format::OutputFormat trait.
  • plain, html, djot, markdown, latex, typst: Concrete renderer implementations.
  • component: Logic for rendering individual template components.
  • citation: Logic for joining components into full citations.
  • bibliography: Logic for rendering bibliographies.

Re-exports§

pub use bibliography::refs_to_string;
pub use bibliography::refs_to_string_slice_with_format;
pub use bibliography::refs_to_string_with_format;
pub use citation::citation_to_string;
pub use citation::citation_to_string_with_format;
pub use component::ProcEntry;
pub use component::ProcTemplate;
pub use component::ProcTemplateComponent;
pub use component::render_component;
pub use component::render_component_with_format_and_renderer;
pub use rich_text::render_djot_inline;

Modules§

bibliography
Bibliography-level rendering and output assembly helpers.
citation
Citation-level rendering and output assembly helpers.
component
Component-level rendering primitives shared by citations and bibliographies.
djot
Djot output format.
format
Output format trait for pluggable renderers.
html
HTML output format.
latex
LaTeX output format.
markdown
CommonMark (Markdown) output format.
org
Org-mode output format.
plain
Plain text output format.
rich_text
Djot and org-mode inline markup rendering for free-text fields.
typst
Typst output format.