Crates.io | vimwiki |
lib.rs | vimwiki |
version | 0.1.0 |
source | src |
created_at | 2020-09-14 02:00:18.608229 |
updated_at | 2021-06-06 23:28:31.593911 |
description | Library that provides support to parse, generate, and manipulate vimwiki language. |
homepage | https://github.com/chipsenkbeil/vimwiki-rs |
repository | https://github.com/chipsenkbeil/vimwiki-rs |
max_upload_size | |
id | 288427 |
size | 3,862 |
This crate represents the language definition and parsing support for the vimwiki language. This has been broken out to be a shareable crate for others to build on top of the vimwiki language and write their own tooling.
Does not support Windows as of yet! See issue #89.
Add this to your Cargo.toml
:
[dependencies]
vimwiki = "0.1"
use vimwiki::{Language, elements::*};
// Load some language as a string
let language = Language::from_vimwiki_str(r#"
= My Header =
///
Some paragraph with *decorations* and [[links]] that you would normally
see in a vimwiki file.
"#);
// Parse the input as a page using vimwiki format
let page: Page = language.parse().unwrap();
By default, no features are enable, but the following are offered:
vimwiki_macros
to expose top-level macro
functions to parse and produce vimwiki elements at compile-time.HashMap
that logs the time taken to parse various
elements and can print out results in a human-readable format. This is
predominately useful for performance optimizations internally.This project is licensed under either of
Apache License, Version 2.0, (LICENSE-APACHE or apache-license) MIT license (LICENSE-MIT or mit-license) at your option.