mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-16 03:14:45 +08:00
- Add unescape for \{ and \} characters in unescapeMarkdownSpecialChars()
- These are commonly used in LaTeX commands like \mathcal{F}
- Add test cases for Fourier transform notation and mixed escape scenarios
- All 118 tests pass including 4 new edge case tests for issue #608
This commit is contained in:
@@ -35,6 +35,8 @@ function unescapeMarkdownSpecialChars(text: string): string {
|
||||
.replace(/\\_/g, '_') // \_ → _
|
||||
.replace(/\\\[/g, '[') // \[ → [
|
||||
.replace(/\\\]/g, ']') // \] → ]
|
||||
.replace(/\\\{/g, '{') // \{ → {
|
||||
.replace(/\\\}/g, '}') // \} → }
|
||||
.replace(/\\\\/g, '\\'); // \\ → \
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user