[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple themes break @shikijs/transformers #248

Open
Serpentarius13 opened this issue Oct 8, 2024 · 0 comments
Open

Multiple themes break @shikijs/transformers #248

Serpentarius13 opened this issue Oct 8, 2024 · 0 comments

Comments

@Serpentarius13
Copy link

When using such options:

const prettyCodeOptions: Options = {
  transformers: [transformerNotationDiff(), transformerNotationHighlight({})],
  getHighlighter: (options) => {
    return createHighlighter({
      ...options,
    });
  },
  theme: {
    dark: "night-owl",
    light: "ayu-dark",
  },
};

Regexp matching breaks in transformers leaving the code untransformed:
image
There is no way now to apply multiple theme tokens as per shiki's docs because of it

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

No branches or pull requests

1 participant