fix: better heading cleanups

This commit is contained in:
Vyacheslav Matyukhin 2022-06-05 00:38:16 +03:00
parent 1a0e42147e
commit 7a5b7837f5
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C

View File

@ -23,7 +23,7 @@ export const cleanText = (text: string): string => {
.replaceAll("( [", "([")
.replaceAll(") ,", "),")
.replaceAll("==", "") // Denotes a title in markdown
.replaceAll(/^#+ /gm, "")
.replaceAll(/^#+\s+/gm, "")
.replaceAll(/^Background\n/gm, "")
.replaceAll(/^Context\n/gm, "")
.replaceAll("--- \n", "- ")