The usage of Markdown --- emphasize text: bold / italic / highlight text / strikethrough / underline / key effect

Updated: 2019.09.14

1. Introduction

Sometimes, we need to emphasize, such as bold and italic text for certain. And Markdown generally can use an asterisk *or underscore _for text stressed.

2. Bold

If you want to achieve the effect of bold, you can use a set **and __surrounded by what you want in bold, for example, **加粗**or __加粗__---> effects: bold or bold

  • ps: If you use a blog in the garden __加粗__, while the front followed by the text does not take effect, you need a space for the job. However, if the front symbol can be displayed properly Spit in the face.
  • Example: I want bold __ __ (not preceded by spaces), I think (no spaces) bold , I would like to bold (preceded by a space)
  • tip: To avoid trouble, using a set of recommendations directly **be bold.

3. italic

If you want to achieve the effect of the use of italics _ _, you can use a set *and _surrounds you want to tilt the content of, for example, *斜体*or _斜体_---> Effect: italic or italic

  • ps: If you use a blog in the garden _斜体_, while the front followed by the text does not take effect, you need a space for the job. However, if the front symbol can be displayed properly.
  • Example: I want to use _ italic _ (not preceded by spaces), I would like to use (no spaces) in italics , I want to use italics (preceded by a space)
  • tip: To avoid trouble, we recommend directly using a set of *italics

4. Highlight Text

If you want to highlight text, you can use a set of back quotes ( `) wrapped text you want to highlight, for example:` `highlighted text -> Effect:文本高亮

5. Delete line

Use ~~surrounds the text you want to delete, such as: ~ ~ ~ ~ delete text ---> Effect:Text deleted

  • ps: jupyter notebook supports the use of a group ~to delete the line.
  • The following is a display of jupyter notebook:
    kbd jupyter notebook tab of the display

6. Underline

By usingHtml tags to achieve the effect underlined, for example: <u>Underline </u>---> Effects: Underline

  • ps: Sometimes hyperlinks will be underlined, as little as possible to underline the text, and hyperlinks to prevent confused

7. Effect button

Html for example inline elements <kbd></kbd>, you can achieve the effect of showing buttons

  • <kbd>ctrl</kbd> + <kbd>R<kbd>---> Effect: ctrl+R
  • ps: the effect on jupyter notebook is very pretty, but the appalling display blog Park frown.

  • The following is a display of jupyter notebook:
    kbd jupyter notebook tab of the display

Guess you like

Origin www.cnblogs.com/liangjianli/p/11518274.html