sim-lib-view-doc 0.1.0-rc.1

Scientific article workspace lens for the SIM Web-UI (WEBUI_4).
Documentation
//! Scientific article workspace lens for the SIM Web-UI (WEBUI_4).
//!
//! The article lens is a real authoring surface, not a markdown textarea: a
//! round-trippable document value with semantic blocks (section, prose,
//! equation, figure, table, citation, embedded-runtime block), an outline plus
//! block canvas, side-by-side source and formatted views as two lenses on the
//! same document value, and embedded live blocks via `scene/embed`.
//!
//! [`doc`] is the document value model; [`lens`] is the formatted and source
//! lenses plus export over a stable intermediate document value.

#![forbid(unsafe_code)]
#![deny(missing_docs)]

mod citizen;
pub mod doc;
pub mod lens;

pub use citizen::{DocArticleDescriptor, doc_article_class_symbol};
pub use doc::{
    ARTICLE_CLASS, article, blocks, citation, embed_block, equation, figure, prose, section, table,
    title,
};
pub use lens::{
    ARTICLE_FORMATTED_LENS, ARTICLE_SOURCE_LENS, article_formatted, article_outline,
    article_source, export_intermediate, export_markdown, with_cache,
};

/// Stable symbol for the scientific article lens.
pub const ARTICLE_LENS: &str = ARTICLE_FORMATTED_LENS;

#[cfg(test)]
mod tests;