fix: Use textContent for code block conversion to prevent content loss
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -69,8 +69,8 @@ function Article({ cache }) {
|
||||
if (pConv.includes(key)) {
|
||||
return (
|
||||
<React.Fragment key={key}>
|
||||
{v.innerHTML.split('\n\n').map((x, i) =>
|
||||
<p key={i} dangerouslySetInnerHTML={{ __html: x }} />
|
||||
{v.textContent.split('\n\n').map((x, i) =>
|
||||
<p key={i}>{x}</p>
|
||||
)}
|
||||
</React.Fragment>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user