feat: support vscode tasks for exporting html, md, and txt (#489)

* feat: support vscode tasks for exporting html, md, and txt

* chore: styling

* docs: update

* test: update snapshot
This commit is contained in:
Myriad-Dreamin 2024-08-05 01:00:25 +08:00 committed by GitHub
parent 140299f0ce
commit 56e20b2590
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 156 additions and 10 deletions

View file

@ -150,6 +150,9 @@ mod polymorphic {
Pdf {
creation_timestamp: Option<chrono::DateTime<chrono::Utc>>,
},
Html {},
Markdown {},
Text {},
Svg {
page: PageSelection,
},
@ -172,6 +175,9 @@ mod polymorphic {
pub fn extension(&self) -> &str {
match self {
Self::Pdf { .. } => "pdf",
Self::Html { .. } => "html",
Self::Markdown { .. } => "md",
Self::Text { .. } => "txt",
Self::Svg { .. } => "svg",
Self::Png { .. } => "png",
}