Superscript and Subscript

Mr.Hope ... 2021-2-25 Markdown
  • Subscript
  • Superscript
  • Markdown
Less than 1 minute

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
Last update: March 19, 2021 01:58
Contributors: Mr.Hope