diff --git a/tool/typedoc-theme.js b/tool/typedoc-theme.js index cb23d24..0e69bef 100644 --- a/tool/typedoc-theme.js +++ b/tool/typedoc-theme.js @@ -62,8 +62,14 @@ class SassSiteRenderContext extends DefaultThemeRenderContext { const compatibilityArgs = parseCompatibility( lineBreak === -1 ? text : text.substring(0, lineBreak), ); - const rest = - lineBreak === -1 ? null : text.substring(lineBreak + 1).trim(); + const restOfFirst = + lineBreak === -1 ? null : text.substring(lineBreak + 1); + + const rest = [ + ...(restOfFirst ? [{ kind: 'text', text: restOfFirst }] : []), + ...compat.content.slice(1), + ]; + return JSX.createElement(JSX.Raw, { html: `{% compatibility ${compatibilityArgs} %}` +