Participate in the WeaveFox "AI Artist" contest to win SEE Conf tickets and thousands of prizes

logoAnt Design X

DesignDevelopmentComponentsX MarkdownX SDKPlayground
  • Introduction
  • Code Examples
  • Themes
  • Streaming
    • Syntax Processing
    • Animation Effects
  • components
    • CodeHighlighter
    • Mermaid
  • Components
    • Overview
    • Think
    • DataChart
    • Sources
    • Custom Component
  • Plugins
    • Overview
    • Latex
    • CustomPlugins

Overview

Using plugins enables @ant-design/x-markdown to support more extended features, such as LaTeX, code highlighting, etc.

Plugin Collection

  • Latex

    Rendering mathematical formulas using Latex syntax.

How to Import Plugins

Plugins can be imported from @ant-design/x-markdown/plugins/plugin-name.

tsx
import Latex from '@ant-design/x-markdown/plugins/latex';

Browser Import

In browsers, you can directly import files using script and link tags, with the plugin name as the global variable.

We provide built plugin files in the dist/plugins directory of the npm package, which you can use directly.

html
<script src="**/dist/plugins/latex.min.js"></script>
<script>
const Latex = window.Latex;
</script>

Custom Plugins

Supports implementing all Marked plugins, or creating custom plugins Reference