0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

[ci] yarn format

This commit is contained in:
natemoo-re 2022-01-31 22:15:39 +00:00 committed by GitHub Actions
parent 6fe1b0279f
commit f3b35023fd
2 changed files with 6 additions and 4 deletions

View file

@ -17,7 +17,7 @@ ${string}`);
// Return unescaped content for now. To be removed.
return string;
}
};
/**
* RawString is a "blessed" version of String

View file

@ -237,7 +237,9 @@ If you're still stuck, please open an issue on GitHub or join us at https://astr
// as a string and the user is responsible for adding a script tag for the component definition.
if (!html && typeof Component === 'string') {
html = await renderAstroComponent(
await render`<${Component}${spreadAttributes(props)}${unescapeHTML((children == null || children == '') && voidElementNames.test(Component) ? `/>` : `>${children}</${Component}>`)}`
await render`<${Component}${spreadAttributes(props)}${unescapeHTML(
(children == null || children == '') && voidElementNames.test(Component) ? `/>` : `>${children}</${Component}>`
)}`
);
}