提供下角标支持的插件。
import MarkdownIt from "markdown-it"; import { sup } from "@mdit/plugin-sup"; const mdIt = MarkdownIt().use(sup); mdIt.render("19^th^");
使用 ^ ^ 进行下角标标注。
^ ^
转义
你可以使用 \ 来转义 ^:
\
^
19\^th^
会被渲染为
19^th^
19^th^: 19th