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

feat: pass raw meta to shikiji #133

Merged
merged 2 commits into from
Dec 18, 2023
Merged

Conversation

jxom
Copy link
Contributor

@jxom jxom commented Dec 18, 2023

In order to use some Shikiji features like Twoslash's explicitTrigger, we need to pass the code block's raw meta to Shikiji.

Copy link

netlify bot commented Dec 18, 2023

Deploy Preview for rehype-pretty-code canceled.

Name Link
🔨 Latest commit 2aa9789
🔍 Latest deploy log https://app.netlify.com/sites/rehype-pretty-code/deploys/6580b6f160b0d30008fae41b

@atomiks
Copy link
Collaborator

atomiks commented Dec 18, 2023

Looks like the __raw property needs to be deleted in the apply function

@jxom
Copy link
Contributor Author

jxom commented Dec 18, 2023

@atomiks – Looks like upgrading Shikiji does the trick.

@atomiks atomiks merged commit 3f6d985 into rehype-pretty:master Dec 18, 2023
5 checks passed
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.

2 participants