Skip to content

Commit 25fe9bb

Browse files
committed
fix: resolve svelte check diagnostics
1 parent 322fa9e commit 25fe9bb

2 files changed

Lines changed: 17 additions & 8 deletions

File tree

src/lib/editor/markdown-import.ts

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -612,14 +612,20 @@ export function parseMarkdownToDocument(
612612
const customBlock = customBlockStart(trimmed);
613613
if (customBlock) {
614614
const collected = collectCustomBlock(lines, index);
615-
const node = collected
616-
? customBlockNode(customBlock.name, customBlock.info, collected.body, fallbackLanguage)
617-
: undefined;
618-
619-
if (node) {
620-
content.push(node);
621-
index = collected.nextIndex;
622-
continue;
615+
616+
if (collected) {
617+
const node = customBlockNode(
618+
customBlock.name,
619+
customBlock.info,
620+
collected.body,
621+
fallbackLanguage,
622+
);
623+
624+
if (node) {
625+
content.push(node);
626+
index = collected.nextIndex;
627+
continue;
628+
}
623629
}
624630
}
625631

src/routes/+page.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,6 +1528,7 @@
15281528
type: calloutNodeNameByKind[kind],
15291529
pos,
15301530
fallback: defaultCalloutLabel(kind),
1531+
attrName: "label",
15311532
label,
15321533
});
15331534
return true;
@@ -1626,6 +1627,7 @@
16261627
type: calloutNodeNameByKind[kind],
16271628
pos: trackedTarget.pos,
16281629
fallback: defaultCalloutLabel(kind),
1630+
attrName: "label",
16291631
label,
16301632
});
16311633
}
@@ -3223,6 +3225,7 @@
32233225
<div
32243226
class="code-line-context-menu"
32253227
role="menu"
3228+
tabindex="-1"
32263229
aria-label={`코드 ${codeLineContextMenu.line}번 줄`}
32273230
style={`left:${codeLineContextMenu.x}px;top:${codeLineContextMenu.y}px`}
32283231
onpointerdown={(event) => event.stopPropagation()}

0 commit comments

Comments
 (0)