fix: Prevent React warnings for SVG attributes
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -106,6 +106,10 @@ function Article({ cache }) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (v.localName === 'svg') {
|
||||
return <span key={key} dangerouslySetInnerHTML={{ __html: v.outerHTML }} />;
|
||||
}
|
||||
|
||||
const Tag = v.localName;
|
||||
if (isCodeBlock(v)) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user