mirror of
https://github.com/voideditor/void
synced 2026-05-24 01:48:25 +00:00
extract \n from FIM
This commit is contained in:
parent
97c611f4f2
commit
7d3ce48f5f
1 changed files with 1 additions and 0 deletions
|
|
@ -153,6 +153,7 @@ export const extractCodeFromFIM = ({ text, recentlyAddedTextLen, midTag, }: { te
|
|||
const foundMid = pm.removePrefix(`<${midTag}>`)
|
||||
|
||||
if (foundMid) {
|
||||
pm.removeSuffix(`\n`) // sometimes outputs \n
|
||||
pm.removeSuffix(`</${midTag}>`)
|
||||
}
|
||||
const s = pm.value()
|
||||
|
|
|
|||
Loading…
Reference in a new issue