Skip to content

Commit e4cfc51

Browse files
committed
trim output bc sometimes we appear to get linebreaks
1 parent 113f930 commit e4cfc51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/lib/markdown-analysis/level-one-headings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ export async function hasLevelOneHeadings(markdown: string): Promise<boolean> {
2020
cmd: [path, "-f", "markdown", "-t", "markdown", "-L", filterPath],
2121
stdout: "piped",
2222
}, markdown);
23-
return result.stdout === "true";
23+
return result.stdout?.trim() === "true";
2424
}

0 commit comments

Comments
 (0)