1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// 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(())
//! }
//! ```
// A5 shims: the floors', the compare product's and the doc layer's
// modules under the names the moved code uses.
pub use ;
pub use ooxml;
pub use ;
pub use ;
pub use ;
pub use ;
/// Word 97-2003 `.doc` reading: text, headings and tables.
/// Markdown in and out of Word documents.