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
//! OxydeMark: extensible Markdown pipelines powered by Rust.
//!
//! The crate root re-exports the stable public Rust surface (OMEP-0008 /
//! OMEP-0010), including [`Meta`] which originates in `rushdown` and is
//! re-exported so the surface is self-contained. Everything else in the crate
//! (the `extensions`, `html_render`, `slug`, and `ast` internal helpers, the
//! thread-local parser/renderer caches, and the arena-conversion functions) is
//! private and may change without notice.
//!
//! The optional `python` cargo feature additionally builds the PyO3 extension
//! module `oxydemark._core`. Without it, the crate has **no** dependency on
//! PyO3, so downstream Rust consumers can use the API below without requiring
//! Python.
//!
//! # Examples
//!
//! ```
//! let ast = oxydemark::parse("# Hello **world**");
//! assert_eq!(ast.kind, "document");
//!
//! let html = oxydemark::markdown_to_html("# Hello").unwrap();
//! assert!(html.contains("<h1"));
//! ```
// Frozen public Rust surface (OMEP-0008 + OMEP-0010).
pub use ;
pub use ;
pub use OxydeError;
/// Typed metadata value (YAML scalars, sequences and mappings).
///
/// Re-exported from `rushdown`, where it is defined. It is the value type of
/// both [`ParseResult::frontmatter`] and [`AstNode::props`], so it is
/// re-exported here to keep the public surface self-contained: downstream
/// crates can name it -- in a struct field, a function signature or a `match`
/// -- without adding `rushdown` as a dependency (issue #34).
///
/// Because it is part of OxydeMark's public API, a `rushdown` major bump is a
/// breaking change for OxydeMark too, hence the exact pin in `Cargo.toml`
/// (issue #33).
pub use Meta;