mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-24 13:13:43 +00:00
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:
parent
140299f0ce
commit
56e20b2590
14 changed files with 156 additions and 10 deletions
|
@ -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",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue