@expressive-code/core
Advanced tools
Comparing version 0.10.0 to 0.11.0
@@ -57,5 +57,7 @@ import * as hast from 'hast'; | ||
declare const codeLineClass = "ec-line"; | ||
declare function getCoreBaseStyles({ coreStyles }: { | ||
declare function getCoreBaseStyles(options: { | ||
theme: ExpressiveCodeTheme; | ||
coreStyles: ResolvedCoreStyles; | ||
useThemedScrollbars: boolean; | ||
useThemedSelectionColors: boolean; | ||
}): string; | ||
@@ -519,2 +521,20 @@ | ||
/** | ||
* Whether the theme is allowed to style the scrollbars. Defaults to `true`. | ||
* | ||
* If set to `false`, scrollbars will be rendered using the browser's default style. | ||
* | ||
* Note that you can override the individual scrollbar colors defined by the theme | ||
* using the `styleOverrides` option. | ||
*/ | ||
useThemedScrollbars?: boolean | undefined; | ||
/** | ||
* Whether the theme is allowed to style selected text. Defaults to `true`. | ||
* | ||
* If set to `false`, selected text will be rendered using the browser's default style. | ||
* | ||
* Note that you can override the individual selection colors defined by the theme | ||
* using the `styleOverrides` option. | ||
*/ | ||
useThemedSelectionColors?: boolean | undefined; | ||
/** | ||
* An optional set of style overrides that can be used to customize the appearance of | ||
@@ -562,2 +582,4 @@ * the rendered code blocks without having to write custom CSS. You can customize core | ||
readonly defaultLocale: string; | ||
readonly useThemedScrollbars: boolean; | ||
readonly useThemedSelectionColors: boolean; | ||
readonly styleOverrides: Partial<typeof coreStyleSettings.defaultSettings>; | ||
@@ -564,0 +586,0 @@ readonly coreStyles: ResolvedCoreStyles; |
{ | ||
"name": "@expressive-code/core", | ||
"version": "0.10.0", | ||
"version": "0.11.0", | ||
"description": "A text marking & annotation engine for presenting source code on the web.", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -36,3 +36,3 @@ # @expressive-code/core | ||
Unless you're a plugin or integration author, you should probably use a higher-level package like `remark-expressive-code` instead of this one. | ||
Unless you're a plugin or integration author, you should probably use a higher-level package like [`astro-expressive-code`](https://www.npmjs.com/package/astro-expressive-code) or [`remark-expressive-code`](https://www.npmjs.com/package/remark-expressive-code) instead of this one. | ||
@@ -97,2 +97,18 @@ ## Installation | ||
- `useThemedScrollbars?: boolean` | ||
Whether the theme is allowed to style the scrollbars. Defaults to `true`. | ||
If set to `false`, scrollbars will be rendered using the browser's default style. | ||
Note that you can override the individual scrollbar colors defined by the theme using the `styleOverrides` option. | ||
- `useThemedSelectionColors?: boolean` | ||
Whether the theme is allowed to style selected text. Defaults to `true`. | ||
If set to `false`, selected text will be rendered using the browser's default style. | ||
Note that you can override the individual selection colors defined by the theme using the `styleOverrides` option. | ||
- `styleOverrides: Partial<UnresolvedCoreStyleSettings<CoreStyleSettings>>` | ||
@@ -99,0 +115,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
778209
8680
812