mirror of
https://github.com/typst/typst
synced 2025-07-29 15:27:53 +08:00
Compare commits
4 Commits
05424ff44a
...
a105eda164
Author | SHA1 | Date | |
---|---|---|---|
|
a105eda164 | ||
|
3a96fe70d8 | ||
|
e0eaf269d4 | ||
|
78355421ad |
@ -834,7 +834,7 @@ fn param_value_completions<'a>(
|
|||||||
fn path_completion(func: &Func, param: &ParamInfo) -> Option<&'static [&'static str]> {
|
fn path_completion(func: &Func, param: &ParamInfo) -> Option<&'static [&'static str]> {
|
||||||
Some(match (func.name(), param.name) {
|
Some(match (func.name(), param.name) {
|
||||||
(Some("image"), "source") => {
|
(Some("image"), "source") => {
|
||||||
&["png", "jpg", "jpeg", "gif", "svg", "svgz", "webp"]
|
&["png", "jpg", "jpeg", "gif", "svg", "svgz", "webp", "pdf"]
|
||||||
}
|
}
|
||||||
(Some("csv"), "source") => &["csv"],
|
(Some("csv"), "source") => &["csv"],
|
||||||
(Some("plugin"), "source") => &["wasm"],
|
(Some("plugin"), "source") => &["wasm"],
|
||||||
|
@ -131,7 +131,7 @@ impl<'a> HeadingNode<'a> {
|
|||||||
// Prepend the numbering to title if it exists
|
// Prepend the numbering to title if it exists
|
||||||
let title = match &self.element.numbering_displayed {
|
let title = match &self.element.numbering_displayed {
|
||||||
// The space should be a `h(0.3em)`, but only plain-texts are supported here.
|
// 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,
|
None => title,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user