vimwiki_macros 0.1.0

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

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.