Fixed bug if markdawn content empty
This commit is contained in:
parent
e949b3b5e2
commit
8258475a63
|
@ -338,6 +338,8 @@ function HeaderToolTip(props: { id: string }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function preprocessMarkDawn(text: string): string {
|
export function preprocessMarkDawn(text: string): string {
|
||||||
|
if (!text) return "";
|
||||||
|
|
||||||
let scenebreakIndex = 0;
|
let scenebreakIndex = 0;
|
||||||
const visitedSlugs: string[] = [];
|
const visitedSlugs: string[] = [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue