Superscript and Subscript

Mr.Hope ... 2020-1-7 Less than 1 minute

Let the Markdown file in your VuePress site support Subscript and Superscript.

# Config







 

 





module.exports = {
  plugins: [
    [
      "md-enhance",
      {
        // Enable Subscript
        sub: true,
        // Enable  Superscript
        sup: true,
      },
    ],
  ],
};
1
2
3
4
5
6
7
8
9
10
11
12
13

# Syntax

  • Use ^ ^ to mark the superscript.
  • Use ~ ~ to mark the subscript.

# Demo

  • 19th
  • H2O
- 19^th^
- H~2~O
1
2
Last update: June 4, 2022 13:16
Contributors: Mr.Hope , Mr.Hope