Superscript and Subscript

Mr.Hope ... Less than 1 minute

# Superscript and Subscript

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

# Configuration






 

 




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

# Syntax

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

# Demo

  • 19th
  • H2O
- 19^th^
- H~2~O
1
2