Fixes #132
This commit is contained in:
parent
b058bd64e1
commit
299e2446b0
@ -51,7 +51,11 @@ function hideNodes(view: EditorView) {
|
||||
node.name === "CodeMark"
|
||||
) {
|
||||
const parent = node.node.parent!;
|
||||
if (!isCursorInRange(view.state, [parent.from, parent.to])) {
|
||||
// Hide ONLY if CodeMark is not insine backticks (InlineCode) and the cursor is placed outside
|
||||
if (
|
||||
parent.node.name !== "InlineCode" &&
|
||||
!isCursorInRange(view.state, [parent.from, parent.to])
|
||||
) {
|
||||
widgets.push(
|
||||
Decoration.line({
|
||||
class: "sb-line-code-outside",
|
||||
|
Loading…
Reference in New Issue
Block a user