
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.
@moevis/remark-mermaid-plugin
Advanced tools
remark plugin to support mermaid for browser use, helpful for react-markdown
npm install @moevis/remark-mermaid-plugin
Our module exampl.js
looks as follows:
import ReactMarkdown from "react-markdown";
import rehypeRaw from "rehype-raw";
import rehypeStringify from "rehype-stringify";
import remarkMermaidPlugin from '@moevis/remark-mermaid-plugin';
const markdownContent = `
```mermaid
graph LR
excute1[i = 1]
excute2[j = 0]
excute3[i ++]
excute4["a = arr[j], b = arr[j + 1]"]
excute5[change a, b]
excute6[j ++]
judge1["i < n"]
judge2["j < n - i"]
judge3["a > b"]
start --> excute1
excute1 --> judge1
judge1 --Y--> excute2
excute2 --> judge2
judge2 --Y--> excute4
judge2 --N--> excute3
excute3 --> judge1
excute4 --> judge3
judge3 --N--> judge2
judge3 --Y--> excute5
excute5 --> excute6
excute6 --> judge2
judge1 --N--> end
```
`
function Markdown() {
return (
<ReactMarkdown
children={markdownContent}
remarkPlugins={[
[remarkMermaidPlugin, { theme: "dark" }],
]}
rehypePlugins={[
rehypeRaw,
rehypeStringify,
]}
/>
);
}
or
<ReactMarkdown
children={markdownContent}
remarkPlugins={[
remarkMermaidPlugin
]}
rehypePlugins={[
rehypeRaw,
rehypeStringify,
]}
/>
FAQs
remark mermaidjs plugin
We found that @moevis/remark-mermaid-plugin 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.