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:
Myriad-Dreamin 2024-08-05 02:14:03 +08:00 committed by GitHub
parent 56e20b2590
commit 85c459d4c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 354 additions and 10 deletions

View file

@ -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),
}
}
}