Commit 3a19b16
fix(web): preserve angle-bracketed text in chat user questions
Add a remarkPreserveHtml remark plugin that converts HTML MDAST nodes
to text nodes before the references plugin runs. This prevents text
like <id> from being parsed as HTML tags and stripped by sanitization,
while keeping @file:{...} reference rendering intact.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 3d37703 commit 3a19b16
File tree
2 files changed
+30
-2
lines changed- packages/web/src/features/chat/components/chatThread
2 files changed
+30
-2
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| |||
Lines changed: 29 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
83 | 104 | | |
84 | 105 | | |
85 | 106 | | |
| |||
101 | 122 | | |
102 | 123 | | |
103 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
104 | 130 | | |
105 | 131 | | |
106 | | - | |
| 132 | + | |
107 | 133 | | |
108 | 134 | | |
109 | 135 | | |
110 | 136 | | |
111 | 137 | | |
| 138 | + | |
112 | 139 | | |
113 | 140 | | |
114 | 141 | | |
115 | | - | |
| 142 | + | |
116 | 143 | | |
117 | 144 | | |
118 | 145 | | |
| |||
0 commit comments