mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-24 13:13:43 +00:00
feat: support vscode tasks for exporting query and pdfpc (#490)
* feat: support vscode tasks for exporting query and pdfpc * test: update snapshot
This commit is contained in:
parent
56e20b2590
commit
85c459d4c8
14 changed files with 354 additions and 10 deletions
|
@ -153,6 +153,15 @@ mod polymorphic {
|
|||
Html {},
|
||||
Markdown {},
|
||||
Text {},
|
||||
Query {
|
||||
format: String,
|
||||
output_extension: Option<String>,
|
||||
strict: bool,
|
||||
selector: String,
|
||||
field: Option<String>,
|
||||
one: bool,
|
||||
pretty: bool,
|
||||
},
|
||||
Svg {
|
||||
page: PageSelection,
|
||||
},
|
||||
|
@ -180,6 +189,11 @@ mod polymorphic {
|
|||
Self::Text { .. } => "txt",
|
||||
Self::Svg { .. } => "svg",
|
||||
Self::Png { .. } => "png",
|
||||
Self::Query {
|
||||
format,
|
||||
output_extension,
|
||||
..
|
||||
} => output_extension.as_deref().unwrap_or(format),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue