xtxt 0.3.0

Parser, validator and extractor for the XTXT plain-text document format
Documentation
  • Coverage
  • 31.03%
    36 out of 116 items documented1 out of 48 items with examples
  • Size
  • Source code size: 65.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 993.3 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • SaiMouli3/xtxt
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • SaiMouli3

xtxt (Rust)

Parser, validator and extractor for the XTXT plain-text document format. No runtime dependencies.

let res = xtxt::parse(&std::fs::read_to_string("notes.xtxt")?);
for issue in xtxt::validate(&res.doc) {
    println!("{}: {:?}: {}", issue.line, issue.severity, issue.message);
}

let data = xtxt::extract(&res.doc);   // outline, tasks, blocks, links, media, code
let html = xtxt::render_html(&res.doc);

This is a port of the Go reference implementation, not a binding. Both are checked against the same fixtures in conformance/.