Skip to content

Markdown

1 post with the tag “Markdown”

Markdown basic syntax

  • Use = and - to mark first- and second-level headings
  • Use the # mark, and the first-level title corresponds to a #
  • paragraph Line breaks require two carriage returns

  • font
    italic text
    italic text Bold text Bold Text Bold italic text italic bold text

  • dividing line You can use more than three asterisks, minus signs, and underscores in a line to create a separator line. There can be no other things in the line. ***

    -–

  • strikethrough Add ~~ at both ends of the textGoogle.com

  • Underline Underline

  • footnote Format: [^famous text required] This is a text that requires footnotes 1

  • unordered list Can be marked with *, +, - * first item * Second item - first item - Second item + first item + Second item
  • ordered list Use numbers plus . to represent 1. first item 2. Second item
  • List nesting Add four spaces before sublist options 1. First * ele1 * ele2 2. second * ele3 * ele4

4. Markdown blockTo block a quote, use > at the beginning of a paragraph, followed by a space.

Section titled “4. Markdown blockTo block a quote, use > at the beginning of a paragraph, followed by a space.”

By using multiple >, multiple levels of nested references can be achieved

print()function

  • code block
    Use to wrap a piece of code, you can specify or not specify the language int main()
    ```javascript
    $(document).ready(function () {
    alert('RUNOOB');
    });

The image syntax format is as follows:

8. Markdown tablesWhen making a table, use | to separate different cells, and use - to separate the header and other rows.

Section titled “8. Markdown tablesWhen making a table, use | to separate different cells, and use - to separate the header and other rows.”
| 表头 | 表头 |
| ---- | ---- |
| 单元格 | 单元格 |
| 单元格 | 单元格 |
Header Header
cell cell
cell cell
  • Alignment * -: Set content and title bar to right alignment
    • :- Set content and title bar to left alignment
    • :-: Set the content and title bar to be centered
| 左对齐 | 右对齐 | 居中对齐|
| :-----| ----: | :----: |
| 单元格 | 单元格 | 单元格 |
| 单元格 | 单元格 | 单元格 |
left aligned Align right center alignment
cell cell cell
cell cell cell

[1]. https://www.runoob.com/markdown

  1. footnote content ↩