Overview
Overview
Using plugins enables @ant-design/x-markdown
to support more extended features, such as LaTeX, code highlighting, etc.
@ant-design/x-markdown/plugins/plugin-name
.import Latex from '@ant-design/x-markdown/plugins/latex';
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.
<script src="**/dist/plugins/latex.min.js"></script><script>const Latex = window.Latex;</script>