emacs-org-link-parser 0.1.0

Library for parsing Emacs Org-mode hyperlinks from a string
Documentation
  • Coverage
  • 20%
    1 out of 5 items documented1 out of 3 items with examples
  • Size
  • Source code size: 39.65 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 306.97 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • lily-mosquitoes/emacs-org-link-parser
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • lily-mosquitoes

Emacs Org Link Parser

This is a Rust library to parse links, formatted as Emacs Org-mode hyperlinks, from a string.

Example usage:

use emacs_org_link_parser as org;

fn main() {
    let line_to_parse = "*** [[#mycookbook][page 3]] dumplings, [[www.best-sauce.com][sauce here: number 4]] [[#pictures][how it looks]] [[forum.com]]";

    let parsed: Vec<org::Link> = org::parse_line(line_to_parse);

    println!("{:?}", parsed);
}

Expected output:

[Link { link: Some("#mycookbook"), description: Some("page 3") }, Link { link: Some("www.best-sauce.com"), description: Some("sauce here: number 4") }, Link { link: Some("#pictures"), description: Some("how it looks") }, Link { link: Some("forum.com"), description: None }]