You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.js
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -228,6 +228,7 @@ In "single" mode, the output will apply the values of all variables to the rules
228
228
@param {boolean} [options.preserveVariables=false] - If `true`, will preserve the block of variables for a given theme even if only exporting one theme. By default, variables are applied to the rules themselves and the resulting CSS will not contain any `var(--variable)`.
229
229
@param {boolean} [options.onlyVariables=false] - Only output the color variables part of the CSS. Forces `preserveVariables` to be `true`.
230
230
@param {boolean} [options.onlyStyles=false] - Only output the style part of the CSS without any variables. Forces `preserveVariables` to be `true` and ignores the theme values. Useful to get the base styles to use multiple themes.
231
+
@param {boolean} [options.useFixture=true] - Include extra styles from GitHub Flavored Markdown, like code snippets.
231
232
@param {string} [options.rootSelector=.markdown-body] - Set the root selector of the rendered Markdown body as it should appear in the output CSS. Defaults to `.markdown-body`.
232
233
*/
233
234
// eslint-disable-next-line complexity
@@ -238,8 +239,8 @@ export default async function getCSS({
238
239
preserveVariables =false,
239
240
onlyVariables =false,
240
241
onlyStyles =false,
241
-
rootSelector ='.markdown-body',
242
242
useFixture =true,
243
+
rootSelector ='.markdown-body',
243
244
}={}){
244
245
if(onlyVariables&&onlyStyles){
245
246
// Would result in an empty output
@@ -254,7 +255,8 @@ export default async function getCSS({
254
255
preserveVariables=true;
255
256
}
256
257
257
-
constbody=awaitcachedFetch('https://github.com');
258
+
// Note: Do not use the landing page (https://github.com/) to exclude styles on it
0 commit comments