jubarte-markdown 0.20.0

Markdown in and out of Word documents for the jubarte engine: CriticMarkup as tracked changes, the agent view, and .doc reading
Documentation
// SPDX-FileCopyrightText: 2026 Jandira Technologies, LLC
//
// SPDX-License-Identifier: Apache-2.0

//! # jubarte-markdown
//!
//! Markdown in and out of Word documents: `markdown::markdown_to_docx`
//! writes CriticMarkup as tracked changes and comments,
//! `markdown::docx_to_markdown` (with `markdown::MarkdownOptions`) projects
//! a package to the agent view's Markdown, and `markdown::diff_markdown`
//! diffs two documents as pandiff-style CriticMarkup. `legacy_doc` reads
//! Word 97-2003 `.doc` files.
//!
//! The patch/redline/unified modules stay with the edit layer (T4.7);
//! the facade composes them back into `jubarte::markdown`. With the
//! `render` feature off, the layout-dependent items (`page_texts`,
//! `with_page_markers`, page markers in reads) do not exist.
//!
//! # Example
//!
//! ```rust
//! use jubarte_markdown::changes::list_changes;
//! use jubarte_markdown::markdown::{DocxOptions, diff_markdown, markdown_to_docx};
//!
//! fn main() -> Result<(), Box<dyn std::error::Error>> {
//!     // CriticMarkup becomes Word tracked changes.
//!     let options = DocxOptions { author: "Reviewer".into(), ..DocxOptions::default() };
//!     let written = markdown_to_docx("The term is {--two--}{++three++} years.\n", &options)?;
//!     assert!(!list_changes(&written.docx)?.is_empty());
//!
//!     // Two Markdown texts diffed as CriticMarkup.
//!     let diff = diff_markdown("The term is two years.\n", "The term is three years.\n");
//!     assert!(diff.contains("three"));
//!     Ok(())
//! }
//! ```

#![cfg_attr(all(coverage_nightly, test), feature(coverage_attribute))]
#![forbid(unsafe_code)]
#![warn(missing_docs)]

// A5 shims: the floors', the compare product's and the doc layer's
// modules under the names the moved code uses.
pub use jubarte_doc::{changes, comments, debug, inspect, validate};
pub(crate) use jubarte_dom::ooxml;
pub use jubarte_dom::{ids, namespaces, util, xmllinq};
pub use jubarte_opc::{admission, opc, settings, strict_translation};
pub(crate) use jubarte_opc::{borders, markup_simplifier, numbering, word_default_theme};
pub use jubarte_redlines::{comparer, document_comparer};

/// Word 97-2003 `.doc` reading: text, headings and tables.
pub mod legacy_doc;
/// Markdown in and out of Word documents.
pub mod markdown;