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
//! CommonMark and GitHub Flavored Markdown battery: highlighter and interactive hook.
//!
//! The battery is split into focused modules (promoted from a single
//! `batteries/markdown.rs` once it outgrew one file, per the registry
//! contract in [`crate::batteries`]):
//!
//! - [`config`]: `MarkdownConfig` / `ConcealMode` shared settings.
//! - [`table`]: GFM pipe-table detection (blocks, pipes, delimiter rows).
//! - [`highlight`]: `MarkdownHighlighter` (`SyntaxHighlighter` impl).
//! - [`folding`]: heading and list fold range computation.
//! - [`hook`]: `MarkdownHook` (`EditorHook` impl: shortcuts, lists, tables).
//! - [`links`]: single-line hyperlink extraction shared by highlighting and
//! click handling.
//!
//! Everything here is built only on the public core API (`SyntaxHighlighter`,
//! `EditorHook`, `HighlightTag`, `ConcealedLine`, …) and emits only existing
//! `HighlightTag` variants plus `Custom("markdown.table.*")` names, so no
//! `twrite-gpui`-side code is required.
pub use ;
pub use MarkdownHighlighter;
pub use MarkdownHook;
pub use extract_markdown_links;
pub use ;
pub use ;