Skip to content

Releases: LekoArts/gatsby-themes

@lekoarts/[email protected]

01 Sep 08:14
7a392d1
Compare
Choose a tag to compare

Minor Changes

  • #1232 d1a23dc5 Thanks @renovate! - This theme uses prism-react-renderer for its code blocks. The version was updated from 1.3.5 to 2.0.6 and it contains some breaking changes in regards to the API surface.

    If you modified the theme in any way (e.g. by shadowing or adding additional Prism languages) you need to apply those changes, too.

    Change of module imports

    - import Highlight, { defaultProps } from "prism-react-renderer";
    + import { Highlight } from "prism-react-renderer"
    
    const Content = (
    -  <Highlight {...defaultProps} code={exampleCode} language="jsx">
    +  <Highlight code={exampleCode} language="jsx">

    Custom languages

    import { Highlight, Prism } from "prism-react-renderer";
    
    (typeof global !== "undefined" ? global : window).Prism = Prism;
    await import("prismjs/components/prism-applescript");
    /** or **/
    require("prismjs/components/prism-applescript");

    Theme imports

    - import vsDark from "prism-react-renderer/themes/vsDark"
    + import { themes } from "prism-react-renderer"
    + const { vsDark } = themes
    
    - const theme = require('prism-react-renderer/themes/vsDark')
    + const theme = require('prism-react-renderer').themes.vsDark

@lekoarts/[email protected]

29 Aug 15:23
7737180
Compare
Choose a tag to compare

Patch Changes

@lekoarts/[email protected]

29 Aug 15:23
7737180
Compare
Choose a tag to compare

Patch Changes

@lekoarts/[email protected]

29 Aug 16:38
ae31c7b
Compare
Choose a tag to compare

Patch Changes

@lekoarts/[email protected]

29 Aug 15:24
7737180
Compare
Choose a tag to compare

Patch Changes

@lekoarts/[email protected]

29 Aug 15:24
7737180
Compare
Choose a tag to compare

Patch Changes

@lekoarts/[email protected]

29 Aug 15:24
7737180
Compare
Choose a tag to compare

Patch Changes

@lekoarts/[email protected]

29 Aug 15:24
7737180
Compare
Choose a tag to compare

Patch Changes

@lekoarts/[email protected]

29 Aug 16:37
ae31c7b
Compare
Choose a tag to compare

Patch Changes

@lekoarts/[email protected]

29 Aug 15:24
7737180
Compare
Choose a tag to compare

Patch Changes