Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@expressive-code/core@0.41.0
Minor Changes
380bfcc: Adds new
createInlineSvgUrl
export that creates an inline SVG image data URL from the given contents of an SVG file.You can use it to embed SVG images directly into a plugin's styles or HAST, or pass it to an existing
styleOverrides
icon setting.0f33477: Updates Shiki to the latest version (3.2.2).
This adds support for the strikethrough ANSI control code, updates language grammars and adds the bundled themes
gruvbox-dark-hard
,gruvbox-dark-medium
,gruvbox-dark-soft
,gruvbox-light-hard
,gruvbox-light-medium
, andgruvbox-light-soft
.6497f09: Adds new
preventUnitlessValues
property toPluginStyleSettings
. Thank you @RantingHuman!Plugins can set this property to an array of style setting paths to prevent unitless values for specific style settings. If the user passes a unitless value to one of these settings, the engine will automatically add
px
to the value. This is recommended for settings used in CSS calculations which would otherwise break if a unitless value is passed.a826a4a: Adds a new
hangingIndent
prop to all code blocks. Thank you @Signum!By setting this prop to a positive number of columns (either in the opening code fence, as a prop on the
<Code>
component, or in thedefaultProps
config option), you can now further refine the indentation of wrapped lines.If the prop
preserveIndent
istrue
(which is the default), thehangingIndent
value is added to the indentation of the original line. IfpreserveIndent
isfalse
, the value is used as the fixed indentation level of all wrapped lines.This option only affects how the code block is displayed and does not change the actual code. When copied to the clipboard, the code will still contain the original unwrapped lines.
0f33477: Extends ANSI formatting support to allow background colors and strikethrough text. Thank you @dhruvkb!
0f33477: Adds support for
bgColor
andstrikethrough
toInlineStyleAnnotation
. Thank you @dhruvkb!@expressive-code/plugin-collapsible-sections@0.41.0
Minor Changes
380bfcc: Adds new
createInlineSvgUrl
export that creates an inline SVG image data URL from the given contents of an SVG file.You can use it to embed SVG images directly into a plugin's styles or HAST, or pass it to an existing
styleOverrides
icon setting.380bfcc: Adds the following new
styleOverrides
settings:collapsibleSections.expandIcon
andcollapsibleSections.collapseIcon
: Allows overriding the SVG icons used for the expand/collapse buttons.6497f09: Uses the new
preventUnitlessValues
property ofPluginStyleSettings
to make style calculations in the plugins "Collapsible Sections", "Frames" and "Text Markers" more robust.Patch Changes
@expressive-code/plugin-frames@0.41.0
Minor Changes
380bfcc: Adds new
createInlineSvgUrl
export that creates an inline SVG image data URL from the given contents of an SVG file.You can use it to embed SVG images directly into a plugin's styles or HAST, or pass it to an existing
styleOverrides
icon setting.6497f09: Uses the new
preventUnitlessValues
property ofPluginStyleSettings
to make style calculations in the plugins "Collapsible Sections", "Frames" and "Text Markers" more robust.380bfcc: Adds the following new
styleOverrides
settings:frames.copyIcon
: Allows overriding the SVG icon used for the copy button. Thank you @louisescher!frames.terminalIcon
: Allows overriding the SVG icon used for the terminal window frame. Defaults to three dots in the top left corner.Patch Changes
@expressive-code/plugin-shiki@0.41.0
Minor Changes
0f33477: Updates Shiki to the latest version (3.2.2).
This adds support for the strikethrough ANSI control code, updates language grammars and adds the bundled themes
gruvbox-dark-hard
,gruvbox-dark-medium
,gruvbox-dark-soft
,gruvbox-light-hard
,gruvbox-light-medium
, andgruvbox-light-soft
.0f33477: Extends ANSI formatting support to allow background colors and strikethrough text. Thank you @dhruvkb!
Patch Changes
@expressive-code/plugin-text-markers@0.41.0
Minor Changes
preventUnitlessValues
property ofPluginStyleSettings
to make style calculations in the plugins "Collapsible Sections", "Frames" and "Text Markers" more robust.Patch Changes
astro-expressive-code@0.41.0
Minor Changes
380bfcc: Adds new
createInlineSvgUrl
export that creates an inline SVG image data URL from the given contents of an SVG file.You can use it to embed SVG images directly into a plugin's styles or HAST, or pass it to an existing
styleOverrides
icon setting.0f33477: Updates Shiki to the latest version (3.2.2).
This adds support for the strikethrough ANSI control code, updates language grammars and adds the bundled themes
gruvbox-dark-hard
,gruvbox-dark-medium
,gruvbox-dark-soft
,gruvbox-light-hard
,gruvbox-light-medium
, andgruvbox-light-soft
.6497f09: Adds new
preventUnitlessValues
property toPluginStyleSettings
. Thank you @RantingHuman!Plugins can set this property to an array of style setting paths to prevent unitless values for specific style settings. If the user passes a unitless value to one of these settings, the engine will automatically add
px
to the value. This is recommended for settings used in CSS calculations which would otherwise break if a unitless value is passed.a826a4a: Adds a new
hangingIndent
prop to all code blocks. Thank you @Signum!By setting this prop to a positive number of columns (either in the opening code fence, as a prop on the
<Code>
component, or in thedefaultProps
config option), you can now further refine the indentation of wrapped lines.If the prop
preserveIndent
istrue
(which is the default), thehangingIndent
value is added to the indentation of the original line. IfpreserveIndent
isfalse
, the value is used as the fixed indentation level of all wrapped lines.This option only affects how the code block is displayed and does not change the actual code. When copied to the clipboard, the code will still contain the original unwrapped lines.
0f33477: Extends ANSI formatting support to allow background colors and strikethrough text. Thank you @dhruvkb!
380bfcc: Adds the following new
styleOverrides
settings:frames.copyIcon
: Allows overriding the SVG icon used for the copy button. Thank you @louisescher!frames.terminalIcon
: Allows overriding the SVG icon used for the terminal window frame. Defaults to three dots in the top left corner.0f33477: Adds support for
bgColor
andstrikethrough
toInlineStyleAnnotation
. Thank you @dhruvkb!Patch Changes
expressive-code@0.41.0
Minor Changes
380bfcc: Adds new
createInlineSvgUrl
export that creates an inline SVG image data URL from the given contents of an SVG file.You can use it to embed SVG images directly into a plugin's styles or HAST, or pass it to an existing
styleOverrides
icon setting.0f33477: Updates Shiki to the latest version (3.2.2).
This adds support for the strikethrough ANSI control code, updates language grammars and adds the bundled themes
gruvbox-dark-hard
,gruvbox-dark-medium
,gruvbox-dark-soft
,gruvbox-light-hard
,gruvbox-light-medium
, andgruvbox-light-soft
.6497f09: Adds new
preventUnitlessValues
property toPluginStyleSettings
. Thank you @RantingHuman!Plugins can set this property to an array of style setting paths to prevent unitless values for specific style settings. If the user passes a unitless value to one of these settings, the engine will automatically add
px
to the value. This is recommended for settings used in CSS calculations which would otherwise break if a unitless value is passed.a826a4a: Adds a new
hangingIndent
prop to all code blocks. Thank you @Signum!By setting this prop to a positive number of columns (either in the opening code fence, as a prop on the
<Code>
component, or in thedefaultProps
config option), you can now further refine the indentation of wrapped lines.If the prop
preserveIndent
istrue
(which is the default), thehangingIndent
value is added to the indentation of the original line. IfpreserveIndent
isfalse
, the value is used as the fixed indentation level of all wrapped lines.This option only affects how the code block is displayed and does not change the actual code. When copied to the clipboard, the code will still contain the original unwrapped lines.
0f33477: Extends ANSI formatting support to allow background colors and strikethrough text. Thank you @dhruvkb!
380bfcc: Adds the following new
styleOverrides
settings:frames.copyIcon
: Allows overriding the SVG icon used for the copy button. Thank you @louisescher!frames.terminalIcon
: Allows overriding the SVG icon used for the terminal window frame. Defaults to three dots in the top left corner.0f33477: Adds support for
bgColor
andstrikethrough
toInlineStyleAnnotation
. Thank you @dhruvkb!Patch Changes
rehype-expressive-code@0.41.0
Minor Changes
380bfcc: Adds new
createInlineSvgUrl
export that creates an inline SVG image data URL from the given contents of an SVG file.You can use it to embed SVG images directly into a plugin's styles or HAST, or pass it to an existing
styleOverrides
icon setting.0f33477: Updates Shiki to the latest version (3.2.2).
This adds support for the strikethrough ANSI control code, updates language grammars and adds the bundled themes
gruvbox-dark-hard
,gruvbox-dark-medium
,gruvbox-dark-soft
,gruvbox-light-hard
,gruvbox-light-medium
, andgruvbox-light-soft
.6497f09: Adds new
preventUnitlessValues
property toPluginStyleSettings
. Thank you @RantingHuman!Plugins can set this property to an array of style setting paths to prevent unitless values for specific style settings. If the user passes a unitless value to one of these settings, the engine will automatically add
px
to the value. This is recommended for settings used in CSS calculations which would otherwise break if a unitless value is passed.a826a4a: Adds a new
hangingIndent
prop to all code blocks. Thank you @Signum!By setting this prop to a positive number of columns (either in the opening code fence, as a prop on the
<Code>
component, or in thedefaultProps
config option), you can now further refine the indentation of wrapped lines.If the prop
preserveIndent
istrue
(which is the default), thehangingIndent
value is added to the indentation of the original line. IfpreserveIndent
isfalse
, the value is used as the fixed indentation level of all wrapped lines.This option only affects how the code block is displayed and does not change the actual code. When copied to the clipboard, the code will still contain the original unwrapped lines.
0f33477: Extends ANSI formatting support to allow background colors and strikethrough text. Thank you @dhruvkb!
380bfcc: Adds the following new
styleOverrides
settings:frames.copyIcon
: Allows overriding the SVG icon used for the copy button. Thank you @louisescher!frames.terminalIcon
: Allows overriding the SVG icon used for the terminal window frame. Defaults to three dots in the top left corner.0f33477: Adds support for
bgColor
andstrikethrough
toInlineStyleAnnotation
. Thank you @dhruvkb!Patch Changes
@expressive-code/plugin-line-numbers@0.41.0
Patch Changes
remark-expressive-code@0.41.0
Patch Changes
@internal/test-utils@0.2.34
Patch Changes