Compare commits

..

4 Commits

Author SHA1 Message Date
Y.D.X.
a105eda164
Merge 3a96fe70d885c99173a1cd4a67ac95cfcb7f4373 into 78355421ad73fdcbe93b4acca890b439c4b6f98d 2025-07-22 14:13:14 +00:00
Y.D.X.
3a96fe70d8
Migrate to Rust 2024
Follows #6637
2025-07-22 22:12:42 +08:00
Y.D.X.
e0eaf269d4
Merge branch 'main' into bookmark 2025-07-22 21:12:19 +08:00
Laurenz
78355421ad
Add pdf extension to image autocompletions (#6643) 2025-07-22 12:07:29 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -834,7 +834,7 @@ fn param_value_completions<'a>(
fn path_completion(func: &Func, param: &ParamInfo) -> Option<&'static [&'static str]> {
Some(match (func.name(), param.name) {
(Some("image"), "source") => {
&["png", "jpg", "jpeg", "gif", "svg", "svgz", "webp"]
&["png", "jpg", "jpeg", "gif", "svg", "svgz", "webp", "pdf"]
}
(Some("csv"), "source") => &["csv"],
(Some("plugin"), "source") => &["wasm"],

View File

@ -131,7 +131,7 @@ impl<'a> HeadingNode<'a> {
// Prepend the numbering to title if it exists
let title = match &self.element.numbering_displayed {
// The space should be a `h(0.3em)`, but only plain-texts are supported here.
Some(ref num) => format!("{num} {title}"),
Some(num) => format!("{num} {title}"),
None => title,
};