summaryrefslogtreecommitdiff
path: root/src/lib.rs
blob: 48156531db64b4279fa538ed5f7b936852ba538e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//! Convert repository file lists into Markdown.
//!
//! `repo2markdown` reads null-separated path lists, normalizes paths, and renders selected files
//! into Markdown. It also exposes small utilities for wrapping Markdown in fences and editing
//! null-separated path lists.
//!
//! The crate is used by the main `repo2markdown` binary and by helper binaries such as
//! `r2md-fence`, `r2md-append`, `r2md-prepend`, and `r2md-remove`.

mod util;

pub mod fence_wrapper;
pub mod fenced_md_generator;
pub mod logger;
pub mod md_generator;
pub mod normalizer;
pub mod path_list_editor;
pub mod renderer;

/// Utilities for working with null-separated path lists.
pub mod path_list {
    pub use crate::util::path_list::paths_from_null_separated_bytes;
}