Skip to content

Commit 7f12058

Browse files
beto-groupGamerGirlandCo
authored andcommitted
refactor: condense markdownSourceImport call in canvas processing. matching previous esthetics
1 parent 55b0015 commit 7f12058

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/index/import/canvas.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ export function canvasImport(
2626
for (const c of parsed.nodes) {
2727
if (c.type == "group") continue;
2828
if (c.type == "text") {
29-
const { frontmatter, metadata, lines, sections } = markdownSourceImport(
30-
path,
31-
c.text,
32-
index.caches[c.id] ?? {}
33-
);
29+
const { frontmatter, metadata, lines, sections } = markdownSourceImport(path, c.text, index.caches[c.id] ?? {});
3430
const card = new CanvasCardData(path, c.id, c, frontmatter);
3531
sections.forEach((i) => card.section(i));
3632
canvas.card(card);

0 commit comments

Comments
 (0)