上下角标
2025/7/23
让你的 VuePress 站点中的 Markdown 文件支持上下角标。
import { hopeTheme } from "vuepress-theme-hope";
export default hopeTheme({
markdown: {
// 启用下角标
sub: true,
// 启用上角标
sup: true,
},
});^ ^进行上角标标注。~ ~进行下角标标注。- 19^th^
- H~2~O你可以使用 \ 来转义 ^ 和 ~:
H~2~O 19^th^
你可以使用 `\` 来转义 `^` 和 `~`:
H\~2~O 19\^th^