Skip to content

Commit

Permalink
Fix API example code in readme.md (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd authored Jun 14, 2024
1 parent 23270ed commit 221b449
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@ console.log(await githubMarkdownCss({
// The theme to use for dark theme.
dark: 'dark',
// If `true`, will return a list of available themes instead of the CSS.
list = false,
list: 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)`.
preserveVariables = false,
preserveVariables: false,
// Only output the color variables part of the CSS. Forces
// `preserveVariables` to be `true`.
onlyVariables = false,
onlyVariables: 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.
onlyStyles = false,
onlyStyles: false,
// Set the root selector of the rendered Markdown body as it should appear
// in the output CSS. Defaults to `.markdown-body`.
rootSelector = '.markdown-body',
rootSelector: '.markdown-body',
}
));
//=> '.markdown-body { …'
Expand Down

0 comments on commit 221b449

Please sign in to comment.