feat: markdown implementation #18

Merged
Anri merged 9 commits from feat/md into main 2023-04-11 01:25:45 +02:00
Showing only changes of commit c2e65f6365 - Show all commits

View file

@ -31,12 +31,13 @@ impl FrontMatter<'_> {
} }
} }
#[derive(Default, Deserialize)] #[derive(Default, Deserialize, Content)]
pub struct FileMetadata { pub struct FileMetadata {
pub title: Option<String>, pub title: Option<String>,
pub link: Option<String>, pub link: Option<String>,
} }
#[derive(Content)]
pub struct Metadata { pub struct Metadata {
pub info: FileMetadata, pub info: FileMetadata,
pub mermaid: bool, pub mermaid: bool,