mirror of
https://github.com/danog/sass-site.git
synced 2025-01-23 06:11:57 +01:00
Merge branch 'main' into builtin-modules
This commit is contained in:
commit
97ba302c4f
@ -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} %}` +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user