Skip to content

Commit fff227c

Browse files
committed
Update sprints
1 parent 4464df4 commit fff227c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/SprintCard.astro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ if (!sprint) {
1111
throw new Error(`Sprint entry "${slug}" not found`);
1212
}
1313
14+
if (sprint.body && /^#+\s/m.test(sprint.body)) {
15+
throw new Error(`No headlines allowed in description. [${sprint.id}]`);
16+
}
17+
18+
1419
const { data, body } = sprint;
1520
1621
// <a href={`/sprints/${slug}`} id={slug} class="text-blue-600 hover:text-blue-800 hover:underline"></a>

0 commit comments

Comments
 (0)