diff --git a/src/main.ts b/src/main.ts index 82f2666b..3d9cda84 100644 --- a/src/main.ts +++ b/src/main.ts @@ -325,7 +325,7 @@ export default class BreadcrumbsPlugin extends Plugin { const layers = noteContent.split("\n").filter((line) => line); - const depth = (line: string) => line.split("-")[0].length; + const depth = (line: string) => line.split(/[-\*\+]/)[0].length; const depths = layers.map(depth); const differences = [];