Fixes #236
parent
e38d8b5806
commit
d41b146c51
|
@ -93,10 +93,15 @@ export function hideHeaderMarkPlugin() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const spacePos = line.indexOf(" ");
|
||||||
|
if (spacePos === -1) {
|
||||||
|
// Not complete header
|
||||||
|
return;
|
||||||
|
}
|
||||||
widgets.push(
|
widgets.push(
|
||||||
invisibleDecoration.range(
|
invisibleDecoration.range(
|
||||||
from,
|
from,
|
||||||
from + line.indexOf(" ") + 1,
|
from + spacePos + 1,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue