github.com/masterhung0112/hk_server/v5@v5.0.0-20220302090640-ec71aef15e1c/tests/test-markdown-basics.md (about)

     1  # Basic Markdown Testing
     2  Tests for text style, code blocks, in-line code and images, lines, block quotes, and headings.
     3  
     4  ### Text Style
     5  
     6  **The following text should render as:**  
     7  _Italics_
     8  _Ita_lics_
     9  *Italics*
    10  **Bold**
    11  ***Bold-italics***
    12  **_Bold-italics_**
    13  ~~Strikethrough~~
    14  
    15  This sentence contains **bold**, _italic_, ***bold-italic***, and ~~stikethrough~~ text.  
    16  
    17  **The following should render as normal text:**  
    18  Normal Text_  
    19  _Normal Text  
    20  _Normal Text*
    21  
    22  ### Carriage Return  
    23  
    24  Line #1 followed by one blank line 
    25  
    26  Line #2 followed by one blank line
    27  
    28  Line #3 followed by Line #4
    29  Line #4 
    30  
    31  
    32  ### Code Blocks
    33  
    34  ```
    35  This text should render in a code block
    36  ```
    37  
    38  **The following markdown should not render:**  
    39  ```
    40  _Italics_  
    41  *Italics*  
    42  **Bold**  
    43  ***Bold-italics***  
    44  **Bold-italics_**  
    45  ~~Strikethrough~~
    46  :) :-) ;) ;-) :o :O :-o :-O 
    47  :bamboo: :gift_heart: :dolls: :school_satchel: :mortar_board:
    48  # Heading 1
    49  ## Heading 2
    50  ### Heading 3
    51  #### Heading 4
    52  ##### Heading 5
    53  ###### Heading 6
    54  > Block Quote
    55  - List
    56    - List Sub-item
    57  [Link](http://i.giphy.com/xNrM4cGJ8u3ao.gif)
    58  [![Github](https://assets-cdn.github.com/favicon.ico)](https://github.com/mattermost/platform)
    59  | Left-Aligned Text | Center Aligned Text | Right Aligned Text |
    60  | :------------ |:---------------:| -----:|
    61  | Left column 1 | this text       |  $100 |
    62  ```
    63  
    64  **The following links should not auto-link or generate previews:**  
    65  ```
    66  GIF: http://i.giphy.com/xNrM4cGJ8u3ao.gif
    67  Website: https://en.wikipedia.org/wiki/Dolphin
    68  ```
    69  
    70  **The following should appear as a carriage return separating two lines of text:**
    71  ```
    72  Line #1 followed by a blank line
    73  
    74  Line #2 following a blank line
    75  ```
    76  
    77  ### In-line Code
    78  
    79  The word `monospace` should render as in-line code.  
    80  
    81  The following markdown in-line code should not render:  
    82  `_Italics_`, `*Italics*`, `**Bold**`, `***Bold-italics***`, `**Bold-italics_**`, `~~Strikethrough~~`, `:)` , `:-)` , `;)` , `:-O` , `:bamboo:` , `:gift_heart:` , `:dolls:` , `# Heading 1`, `## Heading 2`, `### Heading 3`, `#### Heading 4`, `##### Heading 5`, `###### Heading 6`
    83  
    84  This GIF link should not preview: `http://i.giphy.com/xNrM4cGJ8u3ao.gif`  
    85  This link should not auto-link: `https://en.wikipedia.org/wiki/Dolphin`  
    86  
    87  This sentence with `
    88  in-line code
    89  ` should appear on one line.
    90  
    91  ### In-line Images
    92  
    93  (These image tests were moved into Se: MessagingMan.html)  
    94  
    95  
    96  ### Lines
    97  
    98  Three lines should render with text between them:  
    99  
   100  Text above line
   101  
   102  ***
   103  
   104  Text between lines
   105  
   106  ---  
   107  
   108  Text between lines
   109  ___  
   110  
   111  Text below line
   112  
   113  ### Block Quotes
   114  
   115  >This text should render in a block quote.
   116  
   117  **The following markdown should render within the block quote:**  
   118  > #### Heading 4  
   119  > _Italics_, *Italics*, **Bold**, ***Bold-italics***, **_Bold-italics_**, ~~Strikethrough~~  
   120  > :) :-) ;) :-O :bamboo: :gift_heart: :dolls:  
   121  
   122  **The following text should render in two block quotes separated by one line of text:**
   123  > Block quote 1
   124  
   125  Text between block quotes
   126  
   127  > Block quote 2
   128  
   129  ### Headings
   130  
   131  # Heading 1 font size  
   132  ## Heading 2 font size   
   133  ### Heading 3 font size  
   134  #### Heading 4 font size  
   135  ##### Heading 5 font size  
   136  ###### Heading 6 font size