fix: better heading cleanups
This commit is contained in:
parent
1a0e42147e
commit
7a5b7837f5
|
@ -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", "- ")
|
||||
|
|
Loading…
Reference in New Issue
Block a user