Crates.io | vimwiki_macros |
lib.rs | vimwiki_macros |
version | 0.1.0 |
source | src |
created_at | 2020-09-14 02:01:24.361694 |
updated_at | 2021-06-06 23:28:03.356775 |
description | Macro library that provides macros to generate vimwiki language at compile time. |
homepage | https://github.com/chipsenkbeil/vimwiki-rs |
repository | https://github.com/chipsenkbeil/vimwiki-rs |
max_upload_size | |
id | 288428 |
size | 93,834 |
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.
Add this to your Cargo.toml
:
[dependencies]
vimwiki = { version = "0.1", features = ["macros"] }
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
"#};
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.