Commit 04e623e
fix: skip JSX comments in HTML template generation
JSX comments {/* ... */} were generating anchor placeholders (<!--0-->)
in the HTML output even though Analyzer correctly skipped them for
binding index calculations. This mismatch caused rendering artifacts.
HtmlGenerator.JSXExpressionContainer now checks for JSXEmptyExpression
(which includes comments) and skips them, matching Analyzer behavior.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 0e947e4 commit 04e623e
File tree
2 files changed
+16
-0
lines changed- packages/thoth/transform
2 files changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
249 | 263 | | |
250 | 264 | | |
251 | 265 | | |
| |||
0 commit comments