2022年7月12日 星期二

[markdown] Trivial (冷知識)

 

 

Escape special character

 

To escape ` in code snippet, put ` double times and blank before and after a code snippet.  e.q.


`` console.log(`My name is ${name}.`) ``

Notice the format is `` console.log(`My name is ${name}.`) ``

 

Center an image


<p align="center">
  <img src="https://xxxx.com.tw/assets/001.jpg" alt="features"/>
</p>


Heading Anchors

Here is the example of creating an anchor to a heading in GitHub flavored markdown.



## Heading A

This [link](#heading-b) will go to Heading B.

### Heading B

This [link](#heading-a) will go to Heading A.