Compare commits

..

1 Commits

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", "pdf"]
&["png", "jpg", "jpeg", "gif", "svg", "svgz", "webp"]
}
(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(num) => format!("{num} {title}"),
Some(ref num) => format!("{num} {title}"),
None => title,
};