Merge branch 'main' into builtin-modules

This commit is contained in:
Ed Rivas 2023-06-05 18:31:12 -06:00 committed by GitHub
commit 97ba302c4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,8 +62,14 @@ class SassSiteRenderContext extends DefaultThemeRenderContext {
const compatibilityArgs = parseCompatibility( const compatibilityArgs = parseCompatibility(
lineBreak === -1 ? text : text.substring(0, lineBreak), lineBreak === -1 ? text : text.substring(0, lineBreak),
); );
const rest = const restOfFirst =
lineBreak === -1 ? null : text.substring(lineBreak + 1).trim(); lineBreak === -1 ? null : text.substring(lineBreak + 1);
const rest = [
...(restOfFirst ? [{ kind: 'text', text: restOfFirst }] : []),
...compat.content.slice(1),
];
return JSX.createElement(JSX.Raw, { return JSX.createElement(JSX.Raw, {
html: html:
`{% compatibility ${compatibilityArgs} %}` + `{% compatibility ${compatibilityArgs} %}` +