上下角标
小于 1 分钟
让你的 VuePress 站点中的 Markdown 文件支持上下角标。
配置
import { defineUserConfig } from "vuepress";
import { hopeTheme } from "vuepress-theme-hope";
export default defineUserConfig({
theme: hopeTheme({
markdown: {
// 启用下角标
sub: true,
// 启用上角标
sup: true,
},
}),
});
语法
- 使用
^ ^
进行上角标标注。 - 使用
~ ~
进行下角标标注。
案例
- 19th
- H2O
- 19^th^
- H~2~O
转义
你可以使用 \
来转义 ^
和 ~
:
H~2~O 19^th^
你可以使用 `\` 来转义 `^` 和 `~`:
H\~2~O 19\^th^
更新日志
2025/2/18 07:08
查看所有更新日志
b1230
-于22787
-于b41c0
-于54c46
-于792dc
-于e45fb
-于2fa50
-于3c8d6
-于9856d
-于23515
-于48bca
-于9cdd7
-于63d09
-于fd395
-于1eb77
-于f6ff0
-于482e9
-于3c199
-于