Fixed bug if markdawn content empty

This commit is contained in:
DrMint 2022-03-20 14:51:36 +01:00
parent e949b3b5e2
commit 8258475a63
1 changed files with 2 additions and 0 deletions

View File

@ -338,6 +338,8 @@ function HeaderToolTip(props: { id: string }) {
}
export function preprocessMarkDawn(text: string): string {
if (!text) return "";
let scenebreakIndex = 0;
const visitedSlugs: string[] = [];