sync: bring Rust crates in line with nuwiki main (v0.4.2)
CI / cargo fmt --check (push) Successful in 31s
CI / cargo clippy (push) Successful in 34s
CI / cargo test (push) Successful in 49s
Release / bump + tag (push) Successful in 52s
Release / build aarch64-unknown-linux-gnu (push) Successful in 1m45s
Release / build x86_64-unknown-linux-gnu (push) Successful in 2m3s
Release / build aarch64-unknown-linux-musl (push) Successful in 2m6s
Release / build x86_64-unknown-linux-musl (push) Successful in 2m8s
Release / gitea release (push) Successful in 30s
CI / cargo fmt --check (push) Successful in 31s
CI / cargo clippy (push) Successful in 34s
CI / cargo test (push) Successful in 49s
Release / bump + tag (push) Successful in 52s
Release / build aarch64-unknown-linux-gnu (push) Successful in 1m45s
Release / build x86_64-unknown-linux-gnu (push) Successful in 2m3s
Release / build aarch64-unknown-linux-musl (push) Successful in 2m6s
Release / build x86_64-unknown-linux-musl (push) Successful in 2m8s
Release / gitea release (push) Successful in 30s
This commit is contained in:
@@ -526,10 +526,9 @@ impl<'src> LexState<'src> {
|
||||
if level == 0 {
|
||||
return false;
|
||||
}
|
||||
// Must be followed by at least one space.
|
||||
if leading_ws + level >= bytes.len() || bytes[leading_ws + level] != b' ' {
|
||||
return false;
|
||||
}
|
||||
// vimwiki accepts both spaced (`== H ==`) and spaceless (`==H==`)
|
||||
// headings, so we don't require a space after the opening `=`s. The
|
||||
// title is still trimmed of one optional space per side below.
|
||||
|
||||
// Trailing `=`s of the same level.
|
||||
let trimmed_end = line.trim_end_matches([' ', '\t']);
|
||||
|
||||
Reference in New Issue
Block a user