github.com/qichengzx/mattermost-server@v4.5.1-0.20180604164826-2c75247c97d0+incompatible/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  Mattermost/platform build status:  [![Build Status](https://travis-ci.org/mattermost/platform.svg?branch=master)](https://travis-ci.org/mattermost/platform)  
    94  
    95  GitHub favicon:  ![Github](https://assets-cdn.github.com/favicon.ico)
    96  
    97  GIF Image:  
    98  ![gif](http://i.giphy.com/xNrM4cGJ8u3ao.gif)
    99  
   100  4K Wallpaper Image (11Mb):  
   101  ![4K Image](http://4kwallpaper.xyz/wallpaper/Large-Galaxy-Lightyears-Space-4K-wallpaper.png)
   102  
   103  Panorama Image:  
   104  ![Pano](http://amardeepphotography.com/wp-content/uploads/2012/11/Untitled_Panorama6small.jpg)
   105  
   106  Tall Portrait Image:  
   107  ![Portrait](http://www.maniacworld.com/now-this-is-a-tall-building.jpg)
   108  
   109  Tall Portrait Image (resized):  
   110  ![Portrait](http://www.maniacworld.com/now-this-is-a-tall-building.jpg =x200)
   111  
   112  Tall Portrait Image (resized to a square):  
   113  ![Portrait](http://www.maniacworld.com/now-this-is-a-tall-building.jpg =200x200)
   114  
   115  ### Lines
   116  
   117  Three lines should render with text between them:  
   118  
   119  Text above line
   120  
   121  ***
   122  
   123  Text between lines
   124  
   125  ---  
   126  
   127  Text between lines
   128  ___  
   129  
   130  Text below line
   131  
   132  ### Block Quotes
   133  
   134  >This text should render in a block quote.
   135  
   136  **The following markdown should render within the block quote:**  
   137  > #### Heading 4  
   138  > _Italics_, *Italics*, **Bold**, ***Bold-italics***, **_Bold-italics_**, ~~Strikethrough~~  
   139  > :) :-) ;) :-O :bamboo: :gift_heart: :dolls:  
   140  
   141  **The following text should render in two block quotes separated by one line of text:**
   142  > Block quote 1
   143  
   144  Text between block quotes
   145  
   146  > Block quote 2
   147  
   148  ### Headings
   149  
   150  # Heading 1 font size  
   151  ## Heading 2 font size   
   152  ### Heading 3 font size  
   153  #### Heading 4 font size  
   154  ##### Heading 5 font size  
   155  ###### Heading 6 font size