| ... | ... | @@ -1266,7 +1266,11 @@ export default function FilePreviewPanel({ |
| 1266 | 1266 | </div> |
| 1267 | 1267 | ) : relativePath && file.data ? ( |
| 1268 | 1268 | isMarkdown && renderMarkdown ? ( |
| 1269 | // Markdown reconciles in place across text updates, so a file |
| 1270 | // switch needs a new key or the previous file's disclosure and |
| 1271 | // wrap state carries into the next document. |
| 1269 | 1272 | <RenderedMarkdownSurface |
| 1273 | key={relativePath} |
| 1270 | 1274 | environmentId={environmentId} |
| 1271 | 1275 | cwd={cwd} |
| 1272 | 1276 | relativePath={relativePath} |