Socket
Book a DemoInstallSign in
Socket

remark-code-dataset

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-code-dataset

adds codeblock meta as html dataset

2.1.0
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

remark-code-dataset

What

It's a remark plugin which adds all metadata passed to a code block as data attributes for exploitation in rehype or client-side.

Demo

export default function App() {
  return <div>hello world</div>;
}

<code class="language-jsx" data-group="demo" data-file="index.jsx">
  <!-- some html -->
</code>

How

  • Install the plugin with npm i remark-code-dataset
  • Import the plugin with `import remarkCodeDataset from 'remark-code-dataset'
  • Add to your remark plugin stack [remarkCodeDataset]

FAQs

Package last updated on 17 Jan 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.