summaryrefslogtreecommitdiffstats
path: root/tests/test-markdown-basics.md
blob: 6b49eb71fd2be272ea1c5fd723ced6b7bd9e368e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# Basic Markdown Testing
Tests for text style, code blocks, in-line code and images, lines, block quotes, and headings.

### Text Style

**The following text should render as:**  
_Italics_
_Ita_lics_
*Italics*
**Bold**
***Bold-italics***
**_Bold-italics_**
~~Strikethrough~~

This sentence contains **bold**, _italic_, ***bold-italic***, and ~~stikethrough~~ text.  

**The following should render as normal text:**  
Normal Text_  
_Normal Text  
_Normal Text*

### Carriage Return  

Line #1 followed by one blank line 

Line #2 followed by one blank line

Line #3 followed by Line #4
Line #4 


### Code Blocks

```
This text should render in a code block
```

**The following markdown should not render:**  
```
_Italics_  
*Italics*  
**Bold**  
***Bold-italics***  
**Bold-italics_**  
~~Strikethrough~~
:) :-) ;) ;-) :o :O :-o :-O 
:bamboo: :gift_heart: :dolls: :school_satchel: :mortar_board:
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
> Block Quote
- List
  - List Sub-item
[Link](http://i.giphy.com/xNrM4cGJ8u3ao.gif)
[![Github](https://assets-cdn.github.com/favicon.ico)](https://github.com/mattermost/platform)
| Left-Aligned Text | Center Aligned Text | Right Aligned Text |
| :------------ |:---------------:| -----:|
| Left column 1 | this text       |  $100 |
```

**The following links should not auto-link or generate previews:**  
```
GIF: http://i.giphy.com/xNrM4cGJ8u3ao.gif
Website: https://en.wikipedia.org/wiki/Dolphin
```

**The following should appear as a carriage return separating two lines of text:**
```
Line #1 followed by a blank line

Line #2 following a blank line
```

### In-line Code

The word `monospace` should render as in-line code.  

The following markdown in-line code should not render:  
`_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`

This GIF link should not preview: `http://i.giphy.com/xNrM4cGJ8u3ao.gif`  
This link should not auto-link: `https://en.wikipedia.org/wiki/Dolphin`  

This sentence with `
in-line code
` should appear on one line.

### In-line Images

Mattermost/platform build status:  [![Build Status](https://travis-ci.org/mattermost/platform.svg?branch=master)](https://travis-ci.org/mattermost/platform)  

GitHub favicon:  ![Github](https://assets-cdn.github.com/favicon.ico)

GIF Image:  
![gif](http://i.giphy.com/xNrM4cGJ8u3ao.gif)

4K Wallpaper Image (11Mb):  
![4K Image](http://4kwallpaper.xyz/wallpaper/Large-Galaxy-Lightyears-Space-4K-wallpaper.png)

Panorama Image:  
![Pano](http://amardeepphotography.com/wp-content/uploads/2012/11/Untitled_Panorama6small.jpg)

Tall Portrait Image:  
![Portrait](http://www.maniacworld.com/now-this-is-a-tall-building.jpg)

Tall Portrait Image (resized):  
![Portrait](http://www.maniacworld.com/now-this-is-a-tall-building.jpg =x200)

Tall Portrait Image (resized to a square):  
![Portrait](http://www.maniacworld.com/now-this-is-a-tall-building.jpg =200x200)

### Lines

Three lines should render with text between them:  

Text above line

***

Text between lines

---  

Text between lines
___  

Text below line

### Block Quotes

>This text should render in a block quote.

**The following markdown should render within the block quote:**  
> #### Heading 4  
> _Italics_, *Italics*, **Bold**, ***Bold-italics***, **_Bold-italics_**, ~~Strikethrough~~  
> :) :-) ;) :-O :bamboo: :gift_heart: :dolls:  

**The following text should render in two block quotes separated by one line of text:**
> Block quote 1

Text between block quotes

> Block quote 2

### Headings

# Heading 1 font size  
## Heading 2 font size   
### Heading 3 font size  
#### Heading 4 font size  
##### Heading 5 font size  
###### Heading 6 font size