pull/239/head
Zef Hemel 2022-12-27 15:22:14 +01:00
parent e38d8b5806
commit d41b146c51
1 changed files with 6 additions and 1 deletions

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,
),
);
},