fmtview 0.4.2

Fast CLI viewer for highlighting, search, and diffs across JSON, JSONL, markup, Markdown, TOML, text, and Jinja
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub(crate) mod highlight;
pub(crate) mod structure;

use crate::{
    formats::{ContentShape, FormatSpec},
    load::LoadPlan,
    transform::{FormatKind, TransformStrategy},
};

const EXTENSIONS: &[&str] = &["md", "markdown", "mdown", "mkd"];

pub(crate) const SPEC: FormatSpec = FormatSpec {
    kind: FormatKind::Markdown,
    extensions: EXTENSIONS,
    shape: ContentShape::LineIndexed,
    load: LoadPlan::EagerIndexedSource,
    transform: TransformStrategy::Passthrough,
};