#vimwiki #macro #generate #compile-time #language #import #content

macro vimwiki_macros

Macro library that provides macros to generate vimwiki language at compile time

6 releases

0.1.0 Jun 6, 2021
0.1.0-alpha.5 Nov 7, 2020
0.1.0-alpha.3 Oct 22, 2020
0.1.0-alpha.1 Sep 14, 2020

#4 in #vimwiki


Used in 2 crates (via vimwiki)

MIT/Apache

710KB
18K SLoC

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.

Dependencies

~11MB
~212K SLoC