Fixes #132
parent
b058bd64e1
commit
299e2446b0
|
@ -51,7 +51,11 @@ function hideNodes(view: EditorView) {
|
||||||
node.name === "CodeMark"
|
node.name === "CodeMark"
|
||||||
) {
|
) {
|
||||||
const parent = node.node.parent!;
|
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(
|
widgets.push(
|
||||||
Decoration.line({
|
Decoration.line({
|
||||||
class: "sb-line-code-outside",
|
class: "sb-line-code-outside",
|
||||||
|
|
Loading…
Reference in New Issue