vimwiki_macros

Crates.iovimwiki_macros
lib.rsvimwiki_macros
version0.1.0
sourcesrc
created_at2020-09-14 02:01:24.361694
updated_at2021-06-06 23:28:03.356775
descriptionMacro library that provides macros to generate vimwiki language at compile time.
homepagehttps://github.com/chipsenkbeil/vimwiki-rs
repositoryhttps://github.com/chipsenkbeil/vimwiki-rs
max_upload_size
id288428
size93,834
Chip Senkbeil (chipsenkbeil)

documentation

README

vimwiki macros

Contains macros to generate vimwiki components in Rust at compile time.

It should NOT be imported directly. Instead, when importing vimwiki, this crate is brought in when supplying the macros feature.

Usage

Add this to your Cargo.toml:

[dependencies]
vimwiki = { version = "0.1", features = ["macros"] }

Examples

use vimwiki::macros::vimwiki_page;

// Parse vimwiki language at compile-time and generate Rust-based elements
let page = vimwiki_page! {r#"
= Header =

Some paragraph with *bold* content
and some [[links]].

- List item 1
- List item 2
"#};

License

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.

Commit count: 341

cargo fmt