上劃線和下劃線不是Markdown自身語法,因此需要一點摸索,特將結果記錄於此
中劃線
中劃線是markdown自身語法,實現起來很簡單:
~~中劃線~~
效果:
中劃線
下劃線
法一:藉助Latex公式
$\underline{\text{下劃線}}$
法二:行內html:
<u>下劃線</u>
下劃線
上劃線
同上
$\overline{\text{上劃線}}$
全局Html語法
在markdown中效果不太好,因爲定義也會被顯示,在這裏做個記錄。
<head>
<style type="text/css">
h1 {text-decoration: overline}
h2 {text-decoration: line-through}
h3 {text-decoration: underline}
h4 {text-decoration:blink}
</style>
</head>
<body>
<h1>這是標題 1</h1>
<h2>這是標題 2</h2>
<h3>這是標題 3</h3>
<h4>這是標題 4</h4>
</body>
效果: