fix: do not lowercase SVG tags in RSC

This commit is contained in:
Fran Dios 2021-11-05 17:16:20 +09:00
parent 3d9b6c626d
commit a24519a44b
2 changed files with 2 additions and 1 deletions

View file

@ -10,6 +10,7 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
- fix: update interaction prompt and interaction promp style attributes for Model3d
- feat: use Image url field instead of deprecated originalSrc field
- feat: switch to unstable API
- feat: fix lowercased SVG tags in RSC
## 0.5.8 - 2021-11-04

View file

@ -57,7 +57,7 @@ function renderReactProp(prop: any): any {
export function parseReactFromString(input: string, options: any = {}) {
return domToReact(
// @ts-ignore
htmlToDOM(input, {lowerCaseAttributeNames: false}),
htmlToDOM(input, {lowerCaseTags: false, lowerCaseAttributeNames: false}),
options
);
}