Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
docusaurus-preset-shiki-twoslash
Advanced tools
A Docusaurus plugin which adds shiki with optional twoslash-powered code samples
Sets up markdown code blocks to run through shiki which means it gets the VS Code quality syntax highlighting mixed with the twoslash JavaScript tooling from the TypeScript website.
Install the dependency: yarn add docusaurus-preset-shiki-twoslash
Include "docusaurus-preset-shiki-twoslash"
in the presets section of docusaurus.config.js
presets: [
[
'@docusaurus/preset-classic',
{
// ...
},
],
+ [
+ 'docusaurus-preset-shiki-twoslash',
+ {
+ themes: ["min-light", "nord"],
+ },
+ ],
],
Set up light/dark mode CSS in src/css/custom.css
:
[data-theme="light"] .shiki.nord {
display: none;
}
[data-theme="dark"] .shiki.min-light {
display: none;
}
FAQs
A Docusaurus plugin which adds shiki with optional twoslash-powered code samples
The npm package docusaurus-preset-shiki-twoslash receives a total of 483 weekly downloads. As such, docusaurus-preset-shiki-twoslash popularity was classified as not popular.
We found that docusaurus-preset-shiki-twoslash demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.