1
0
This commit is contained in:
Zef Hemel 2022-11-29 08:35:46 +01:00
parent b058bd64e1
commit 299e2446b0

View File

@ -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",