Superscript and Subscript

Mr.Hope ... Markdown
  • Feature
  • Markdown
Less than 1 minute

# Superscript and Subscript

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

# Configuration




 
 




module.exports = {
  themeConfig: {
    mdEnhance: {
      sub: true,
      sup: true,
    },
  },
};
1
2
3
4
5
6
7
8

# Syntax

  • Use ^ ^ to mark the superscript.
  • Use ~ ~ to mark the subscript.
Demo
  • 19th
  • H2O
- 19^th^
- H~2~O
1
2