@mdit/plugin-sup
Plugin to support superscript.
Usage
TS
import MarkdownIt from "markdown-it";
import { sup } from "@mdit/plugin-sup";
const mdIt = MarkdownIt().use(sup);
mdIt.render("19^th^");
JS
const MarkdownIt = require("markdown-it");
const { sup } = require("@mdit/plugin-sup");
const mdIt = MarkdownIt().use(sup);
mdIt.render("19^th^");
Syntax
Use ^ ^
to mark the superscript.
Escaping
You can use
\
to escape^
:19\^th^
will be
19^th^
Demo
19^th^
: 19th