vimwiki 0.1.0-alpha.2

Library that provides support to parse, generate, and manipulate vimwiki langauge.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::{InlineElement, InlineElementContainer, LE};
use derive_more::Constructor;
use serde::{Deserialize, Serialize};

#[derive(Constructor, Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
pub struct Paragraph {
    pub content: InlineElementContainer,
}

impl From<Vec<LE<InlineElement>>> for Paragraph {
    fn from(elements: Vec<LE<InlineElement>>) -> Self {
        Self::new(elements.into())
    }
}