
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
remark-rehype-wrap
Advanced tools
Wrap
remark
orrehype
subtrees in a new container node.
npm install remark-rehype-wrap
import { remark } from 'remark'
import { remarkRehypeWrap } from 'remark-rehype-wrap'
await remark().use(remarkRehypeWrap).process('<p>Hello, world!</p>')
See test.js
for usage examples.
options.node
A new node to use as the wrapper. e.g. { type: 'element', tagName: 'div' }
options.start
Either:
string
: A node selector passed to unist-util-select
. Nodes matching the selector create a new wrapper section.
{ selector: string, inclusive?: boolean, exclude?: string }
Property | Description |
---|---|
selector | A node selector passed to unist-util-select . Nodes matching the selector create a new wrapper section. |
inclusive | Whether the start node should be included in the new wrapper section (true , default) or not (false ). |
exclude | A node selector passed to unist-util-select . Nodes matching the selector will not create a new wrapper section, even if they match selector |
options.end
(optional)Either:
string
: A node selector passed to unist-util-select
. Nodes matching the selector end the current wrapper section.
{ selector: string, inclusive?: boolean, exclude?: string }
Property | Description |
---|---|
selector | A node selector passed to unist-util-select . Nodes matching the selector end the current wrapper section. |
inclusive | Whether the end node should be included in the current wrapper section (true ) or not (false , default). |
exclude | A node selector passed to unist-util-select . Nodes matching the selector will not end the current wrapper section, even if they match selector |
If end
is not defined then it is set to the same as start
.
options.transform
(optional)The transform
function is passed each new wrapper node and should return a node. See test.js
for an example.
FAQs
Wrap `remark` or `rehype` subtrees in a new container node
The npm package remark-rehype-wrap receives a total of 2,881 weekly downloads. As such, remark-rehype-wrap popularity was classified as popular.
We found that remark-rehype-wrap 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.