mirror of
https://github.com/danog/sass-site.git
synced 2024-11-26 20:14:53 +01:00
Merge branch 'main' of github.com:sass/sass-site
* 'main' of github.com:sass/sass-site: Fix compatibility callouts in typedoc comments (#733)
This commit is contained in:
commit
4c4051de20
@ -62,8 +62,14 @@ class SassSiteRenderContext extends DefaultThemeRenderContext {
|
||||
const compatibilityArgs = parseCompatibility(
|
||||
lineBreak === -1 ? text : text.substring(0, lineBreak),
|
||||
);
|
||||
const rest =
|
||||
const restOfFirst =
|
||||
lineBreak === -1 ? null : text.substring(lineBreak + 1).trim();
|
||||
|
||||
const rest = [
|
||||
...(restOfFirst ? [{ kind: 'text', text: restOfFirst }] : []),
|
||||
...compat.content.slice(1),
|
||||
];
|
||||
|
||||
return JSX.createElement(JSX.Raw, {
|
||||
html:
|
||||
`{% compatibility ${compatibilityArgs} %}` +
|
||||
|
Loading…
Reference in New Issue
Block a user