5

markdown 借助 html 原生标签 实现上标和下标

 2 years ago
source link: https://hellodk.cn/post/238
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

markdown 借助 html 原生标签 实现上标和下标

markdown 使用上标和下标 上标用 <sup> 包围,下标用<sub> 包围

上标,比如: 2<sup>2</sup>=4 效果见①
下标,比如: 2<sub>2</sub> 效果见②

① 上标,比如: 22=4

② 下标,比如: 22

Markdown可以和HTML的语法兼容,可以通过HTML原生上标和下标标签来实现效果

上标 sup 指的是 superscript,下标 sub 指的是subscript


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK