Skip to content

Commit

Permalink
fix: 🐛 Drop header and alias when initingGraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Nov 30, 2021
1 parent a59c79b commit cb4cc74
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,10 @@ export default class BCPlugin extends Plugin {
getBaseFromMDPath(link.match(dropHeaderOrAlias)[1])
);
parsed.push(...strs);
} else parsed.push(getBaseFromMDPath(rawAsString));
} else {
const basename = getBaseFromMDPath(rawAsString);
parsed.push(basename.split("#")[0].split("|")[0]);
}
} else if (value.path !== undefined) {
const basename = getBaseFromMDPath(value.path);
if (basename !== undefined) parsed.push(basename);
Expand Down

0 comments on commit cb4cc74

Please sign in to comment.