
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
remark-code-tabs
Advanced tools
It's a remark plugin which create the basics for code tabs in a markdown document.
```jsx tabs=demo name=index.jsx
export default function App() {
return <div>hello world</div>;
}
```
```css tabs=demo name=style.css
div {
border: 1px solid red;
}
```
↓
When you wont't use docusaurus' plugin because you don't want/plan to add jsx/mdx.
npm i remark-code-tabs
[remarkCodeTabs]
In a markdown file, add the 2 meta tabs="" name=""
to a block content such as:
```jsx tabs="demo" name="index.jsx"
export default function App() {
return <div>hello world</div>;
}
```
```css tabs="demo" name="style.css"
div {
border: 1px solid red;
}
```
By default, no style will be injected, only classnames and a default html structure to help you get started. That said, you can import the plugin like this [remarkCodeTabs, { injectStyle: true }]
to add a inlined <style>
with the bare minimum to have a tab-like navigation, or [remarkCodeTabs, { injectStyle: 'cdn' }]
yielding a link tag using unpkg.com.
You can leverage these css selectors to theme your code tabs:
.remark-code-tabs {
/* tabs wrapper */
}
.remark-code-tab {
/* tab default state */
}
.remark-code-tab:has(:checked) {
/* tab active state */
}
.remark-code-tab:not(:has(:checked)) {
/* tab inactive state */
}
.remark-code-content {
/* content wrapper */
}
FAQs
a remark plugin to create multi-tab code views in html
The npm package remark-code-tabs receives a total of 0 weekly downloads. As such, remark-code-tabs popularity was classified as not popular.
We found that remark-code-tabs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.