
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@race-ui/markdown
Advanced tools
markdown文档转HTML, 并且静态react代码,在线编辑与运行。 具体细节请查看 examples
npm install @race-ui/react-live @race-ui/markdown --save
import Markdown from '@race-ui/markdown';
import '@race-ui/react-live/assets/index.css';
import '@race-ui/markdown/assets/index.css';
import Markdown from '@race-ui/markdown';
const markdownValue = `Markdown 文档`;
ReactDOM.render(<Markdown value={markdownValue} />, mountNode);
| 属性 | 默认值 | 参数类型 | 用法说明 |
|---|---|---|---|
| value | 必传 | string | Markdown 文档 |
| className | - | string | 该组件样式 |
| defaultShowType | 'All' | ShowType('All','Code','Preview') | UI显示情况('All': code与运行结果都显示, ‘Code’: 只显示code, 'Preview': 只显示渲染的UI) |
| scope | 'React', 'ReactDOM', 'mountNode' | ReactLiveScope | 执行code中的方法、组件等变量 |
| navType | MarkdownNavType.Right | MarkdownNavType('Left', 'Right', 'None') | 'Left: 导航放在左边', 'Right: 导航放在右边', 'None: 不开启导航' |
| offsetScrollTop | 70 | number | 开启导航后,固定位置到顶部的距离, 当navType为None时, 此属性无用 |
| onNotifyRunCode | - | (code: string) => void | 标识react-run的代码块按钮点击触发回调 |
在代码块后空格加 react-run 标识, 将会使用@race-ui/react-live代码在线执行库,执行Markdown文档中代码。
若React组件需在代码块中写入渲染方法: ReactDOM.render(<Demo />, mountNode)。
FAQs
markdown parser html and code run
We found that @race-ui/markdown 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.