1
0
This commit is contained in:
Zef Hemel 2022-12-27 15:22:14 +01:00
parent e38d8b5806
commit d41b146c51

View File

@ -93,10 +93,15 @@ export function hideHeaderMarkPlugin() {
return;
}
const spacePos = line.indexOf(" ");
if (spacePos === -1) {
// Not complete header
return;
}
widgets.push(
invisibleDecoration.range(
from,
from + line.indexOf(" ") + 1,
from + spacePos + 1,
),
);
},