
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@ant-design/x-markdown
Advanced tools
Streaming-friendly, highly extensible, and high-performance Markdown renderer
Changelog · Report a Bug · Request a Feature · English · 中文
Uses marked
as the base markdown renderer, with all features of marked.
Consistent with marked
. For better overall markdown compatibility, you can customize polyfills as needed.
![]() | ![]() | ![]() | ![]() | ![]() |
---|---|---|---|---|
>= 92 | >= 90 | >= 92 | >= 15.4 | >= 78 |
We recommend using npm, yarn, pnpm, bun, or utoo for development. This allows for easy debugging in development and safe production deployment, enjoying the benefits of the entire ecosystem and toolchain. If your network is slow, try cnpm.
npm install @ant-design/x-markdown
yarn add @ant-design/x-markdown
pnpm add @ant-design/x-markdown
ut install @ant-design/x-markdown
Use script
and link
tags to directly import files in the browser, and use the global variable XMarkdown
.
We provide x-markdown.js
, x-markdown.min.js
, and x-markdown.min.js.map
in the dist directory of the npm package.
Strongly not recommended to use built files, as this prevents on-demand loading and makes it difficult to get quick bug fixes for underlying dependency modules.
Note:
x-markdown.js
,x-markdown.min.js
, andx-markdown.min.js.map
depend onreact
andreact-dom
. Please ensure these files are imported in advance.
import React from 'react';
import { XMarkdown } from '@ant-design/x-markdown';
const content = `
# Hello World
### Welcome to XMarkdown!
- Item 1
- Item 2
- Item 3
`;
const App = () => <XMarkdown content={content} />;
export default App;
@ant-design/x-markdown
provides a rich set of plugins. You can use them via the plugins
prop. See Plugins Collection for details.
@ant-design/x-markdown
provides several themes. See Themes for details.
@ant-design/x
provides a rich set of atomic components for different interaction stages based on the RICH interaction paradigm, helping you flexibly build your AI applications. See details here.
@ant-design/x-sdk
provides a set of utility APIs to help developers manage AI application data streams out of the box. See details here.
Before participating in any form, please read the Contributor Guide. If you wish to contribute, feel free to submit a Pull Request or report a Bug.
We highly recommend reading How To Ask Questions The Smart Way, How to Ask Questions in Open Source Community, How to Report Bugs Effectively, and How to Submit Unanswerable Questions to Open Source Projects. Better questions are more likely to get help.
If you encounter problems during use, you can seek help through the following channels. We also encourage experienced users to help newcomers through these channels.
When asking questions on GitHub Discussions, it is recommended to use the Q&A
tag.
FAQs
placeholder for @ant-design/x-markdown
The npm package @ant-design/x-markdown receives a total of 24 weekly downloads. As such, @ant-design/x-markdown popularity was classified as not popular.
We found that @ant-design/x-markdown demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers 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
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.