跳至主要內容

@mdit/plugin-sup


提供下角标支持的插件。

使用

TS
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