EldoranDev / gridsome-plugin-remark-shiki

Syntax highlighter for markdown code blocks using shiki
15 stars 8 forks source link

Only nord theme will load #24

Open typeoneerror opened 2 years ago

typeoneerror commented 2 years ago

Tried a number of shiki-supported themes without luck and only nord works with this plugin.

transformers: {
    remark: {
      plugins: [
        [
          'gridsome-plugin-remark-shiki',
          { highlightLines: true, showLanguage: true, theme: 'github-dark-dimmed' },
        ],
      ],
    },
  },

output...


DONE  Compiled successfully in 215ms                                                                                 9:27:41 PM

  Site running at:
  - Local:                 http://localhost:8080/
  - Network:               http://192.168.4.90:8080/

  Explore GraphQL data at: http://localhost:8080/___explore

Shiki theme github-dark-dimmed could not get loaded.```

`showLanguage` is also not rendering as described in the docs.
naiyerasif commented 2 years ago

This has been fixed in v0.7.0.

altrim commented 2 years ago

@EldoranDev @naiyerasif Looks like v0.7.0 is not published on npm, the last version seems to be 0.6.0 published a year ago https://www.npmjs.com/package/gridsome-plugin-remark-shiki. Is this correct?

lewis-kori commented 10 months ago

@altrim did you find a work around?

looks like we might have to abandon Gridsome.

naiyerasif commented 10 months ago

@lewis-kori It has been a long time since my contribution. Unfortunately, the latest changes were not published by the maintainer.

You might be interested into a more generic Rehype plugin, rehype-starry-night, that I built which can be used with any framework using Remark / Rehype plugins.

altrim commented 10 months ago

@altrim did you find a work around?

looks like we might have to abandon Gridsome.

I forked the repo and use it directly like "gridsome-plugin-remark-shiki": "git+https://git@github.com/altrim/gridsome-plugin-remark-shiki#master", Haven't updated since then though, I will most likely switch to a different one.