Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 11, 2025

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, and gruvbox-light-soft.

  • 6497f09: Adds new preventUnitlessValues property to PluginStyleSettings. 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 the defaultProps config option), you can now further refine the indentation of wrapped lines.

    If the prop preserveIndent is true (which is the default), the hangingIndent value is added to the indentation of the original line. If preserveIndent is false, 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 and strikethrough to InlineStyleAnnotation. 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 and collapsibleSections.collapseIcon: Allows overriding the SVG icons used for the expand/collapse buttons.
  • 6497f09: Uses the new preventUnitlessValues property of PluginStyleSettings to make style calculations in the plugins "Collapsible Sections", "Frames" and "Text Markers" more robust.

Patch Changes

  • Updated dependencies [380bfcc]
  • Updated dependencies [0f33477]
  • Updated dependencies [6497f09]
  • Updated dependencies [a826a4a]
  • Updated dependencies [0f33477]
  • Updated dependencies [0f33477]
    • @expressive-code/core@0.41.0

@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 of PluginStyleSettings 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

  • Updated dependencies [380bfcc]
  • Updated dependencies [0f33477]
  • Updated dependencies [6497f09]
  • Updated dependencies [a826a4a]
  • Updated dependencies [0f33477]
  • Updated dependencies [0f33477]
    • @expressive-code/core@0.41.0

@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, and gruvbox-light-soft.

  • 0f33477: Extends ANSI formatting support to allow background colors and strikethrough text. Thank you @dhruvkb!

Patch Changes

  • Updated dependencies [380bfcc]
  • Updated dependencies [0f33477]
  • Updated dependencies [6497f09]
  • Updated dependencies [a826a4a]
  • Updated dependencies [0f33477]
  • Updated dependencies [0f33477]
    • @expressive-code/core@0.41.0

@expressive-code/plugin-text-markers@0.41.0

Minor Changes

  • 6497f09: Uses the new preventUnitlessValues property of PluginStyleSettings to make style calculations in the plugins "Collapsible Sections", "Frames" and "Text Markers" more robust.

Patch Changes

  • Updated dependencies [380bfcc]
  • Updated dependencies [0f33477]
  • Updated dependencies [6497f09]
  • Updated dependencies [a826a4a]
  • Updated dependencies [0f33477]
  • Updated dependencies [0f33477]
    • @expressive-code/core@0.41.0

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, and gruvbox-light-soft.

  • 6497f09: Adds new preventUnitlessValues property to PluginStyleSettings. 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 the defaultProps config option), you can now further refine the indentation of wrapped lines.

    If the prop preserveIndent is true (which is the default), the hangingIndent value is added to the indentation of the original line. If preserveIndent is false, 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 and strikethrough to InlineStyleAnnotation. Thank you @dhruvkb!

Patch Changes

  • Updated dependencies [380bfcc]
  • Updated dependencies [0f33477]
  • Updated dependencies [6497f09]
  • Updated dependencies [a826a4a]
  • Updated dependencies [0f33477]
  • Updated dependencies [380bfcc]
  • Updated dependencies [0f33477]
    • rehype-expressive-code@0.41.0

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, and gruvbox-light-soft.

  • 6497f09: Adds new preventUnitlessValues property to PluginStyleSettings. 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 the defaultProps config option), you can now further refine the indentation of wrapped lines.

    If the prop preserveIndent is true (which is the default), the hangingIndent value is added to the indentation of the original line. If preserveIndent is false, 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 and strikethrough to InlineStyleAnnotation. Thank you @dhruvkb!

Patch Changes

  • Updated dependencies [380bfcc]
  • Updated dependencies [6497f09]
  • Updated dependencies [0f33477]
  • Updated dependencies [6497f09]
  • Updated dependencies [a826a4a]
  • Updated dependencies [0f33477]
  • Updated dependencies [380bfcc]
  • Updated dependencies [0f33477]
    • @expressive-code/plugin-frames@0.41.0
    • @expressive-code/core@0.41.0
    • @expressive-code/plugin-text-markers@0.41.0
    • @expressive-code/plugin-shiki@0.41.0

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, and gruvbox-light-soft.

  • 6497f09: Adds new preventUnitlessValues property to PluginStyleSettings. 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 the defaultProps config option), you can now further refine the indentation of wrapped lines.

    If the prop preserveIndent is true (which is the default), the hangingIndent value is added to the indentation of the original line. If preserveIndent is false, 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 and strikethrough to InlineStyleAnnotation. Thank you @dhruvkb!

Patch Changes

@expressive-code/plugin-line-numbers@0.41.0

Patch Changes

  • Updated dependencies [380bfcc]
  • Updated dependencies [0f33477]
  • Updated dependencies [6497f09]
  • Updated dependencies [a826a4a]
  • Updated dependencies [0f33477]
  • Updated dependencies [0f33477]
    • @expressive-code/core@0.41.0

remark-expressive-code@0.41.0

Patch Changes

@internal/test-utils@0.2.34

Patch Changes

  • Updated dependencies [380bfcc]
  • Updated dependencies [0f33477]
  • Updated dependencies [6497f09]
  • Updated dependencies [a826a4a]
  • Updated dependencies [0f33477]
  • Updated dependencies [0f33477]
    • @expressive-code/core@0.41.0

Copy link

netlify bot commented Apr 11, 2025

Deploy Preview for expressive-code ready!

Name Link
🔨 Latest commit 0083031
🔍 Latest deploy log https://app.netlify.com/sites/expressive-code/deploys/67fa941c8f2d26000861fbe7
😎 Deploy Preview https://deploy-preview-319--expressive-code.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot force-pushed the changeset-release/main branch 3 times, most recently from 0121c47 to 4f6e7ef Compare April 12, 2025 14:57
@github-actions github-actions bot force-pushed the changeset-release/main branch from 4f6e7ef to 0083031 Compare April 12, 2025 16:26
@hippotastic hippotastic merged commit 83c6efd into main Apr 12, 2025
4 checks passed
@hippotastic hippotastic deleted the changeset-release/main branch April 12, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant