mirror of https://github.com/openclaw/openclaw.git
* fix(markdown): require paired || delimiters for spoiler detection An unpaired || (odd count across all inline tokens) would open a spoiler that never closes, causing closeRemainingStyles to extend it to the end of the text. This made all content after an unpaired || appear as hidden/spoiler in Telegram. Pre-count || delimiters across the entire inline token group and skip spoiler injection entirely when the count is less than 2 or odd. This prevents single | characters and unpaired || from triggering spoiler formatting. Closes #26068 Co-authored-by: Cursor <cursoragent@cursor.com> * fix: preserve valid spoiler pairs with trailing unmatched delimiters (#26105) (thanks @Sid-Qin) --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Peter Steinberger <steipete@gmail.com> |
||
|---|---|---|
| .. | ||
| code-spans.ts | ||
| fences.ts | ||
| frontmatter.test.ts | ||
| frontmatter.ts | ||
| ir.blockquote-spacing.test.ts | ||
| ir.hr-spacing.test.ts | ||
| ir.nested-lists.test.ts | ||
| ir.table-bullets.test.ts | ||
| ir.table-code.test.ts | ||
| ir.ts | ||
| render.ts | ||
| tables.ts | ||
| whatsapp.test.ts | ||
| whatsapp.ts | ||