mirror of
https://github.com/kotaindah55/extended-markdown-syntax.git
synced 2026-07-22 05:38:06 +00:00
fix: add another condition for decos set filter
Align line decoration that doesn't covered by filter range, even though it was touching it, should not be filtered out.
This commit is contained in:
parent
8dca807b37
commit
e371b7904d
1 changed files with 2 additions and 2 deletions
|
|
@ -79,8 +79,8 @@ export class DecorationBuilder {
|
|||
filterTo = (this.parser.tokens[end]?.from ?? docLen);
|
||||
return decoSet.map(update.changes).update({
|
||||
add: ranges, filterFrom, filterTo,
|
||||
filter(from, to) {
|
||||
return (to == filterFrom || from == filterTo) && to != from;
|
||||
filter(from, to, val) {
|
||||
return (to == filterFrom || from == filterTo) && ((val.spec.type as Format) <= Format.ALIGN_JUSTIFY || to != from);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue