|
1 | 1 | /* |
2 | 2 | * All supported markdown features |
3 | 3 | */ |
4 | | -export const markdown = String(` |
5 | | -# Heading |
| 4 | +export const markdown = ` |
| 5 | +# Linebreaks |
6 | 6 |
|
7 | | -## sub heading |
| 7 | +Without 2 trailing spaces: |
8 | 8 |
|
9 | | -**bold** |
| 9 | +Line 1 |
| 10 | +Line 2 |
| 11 | +Line 3 |
10 | 12 |
|
11 | | -* bullet point 1 |
12 | | -* bullet point 2 |
| 13 | +With 2 trailing spaces: |
13 | 14 |
|
14 | | -1. ordered list item 1 |
15 | | -2. ordered list item 2 |
| 15 | +Line 4 |
| 16 | +Line 5 |
| 17 | +Line 6 |
16 | 18 |
|
17 | | -[Read more](https://www.nhs.uk/example) |
| 19 | +# Paragraphs |
18 | 20 |
|
19 | | -https://www.nhs.uk/example |
| 21 | +Paragraph 1 |
20 | 22 |
|
21 | | -Before page break |
22 | | -*** |
23 | | -After page break |
| 23 | +Paragraph 2 |
| 24 | +
|
| 25 | +Paragraph 3 |
| 26 | +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tempor vel quam vitae finibus. |
| 27 | +
|
| 28 | +Paragraph above two blank lines |
| 29 | +
|
| 30 | +
|
| 31 | +Paragraph below two blank lines |
| 32 | +
|
| 33 | +# Headings |
| 34 | +
|
| 35 | +# Heading 1 |
| 36 | +
|
| 37 | +## Heading 2 |
| 38 | +
|
| 39 | +### Heading 3 |
| 40 | +
|
| 41 | +#### Heading 4 |
| 42 | +
|
| 43 | +#Heading no space |
| 44 | +
|
| 45 | +## Heading directly above a paragraph |
| 46 | +Aenean congue venenatis rutrum. Suspendisse vehicula finibus volutpat. Nunc lacinia rhoncus nibh. |
| 47 | +
|
| 48 | +# Bold and italics |
| 49 | +
|
| 50 | +**Some bold text using asterisks** |
| 51 | +
|
| 52 | +__Some bold text using underscores__ |
| 53 | +
|
| 54 | +*Some italic text using asterisks* |
| 55 | +
|
| 56 | +_Some italic text using underscores_ |
| 57 | +
|
| 58 | +# Lists |
| 59 | +
|
| 60 | +Bullets with asterisks: |
| 61 | +
|
| 62 | +* Duis finibus tellus augue, ut dapibus orci vehicula id. |
| 63 | +* Proin in condimentum tellus, ac elementum ligula. |
| 64 | +* Nulla libero nisl, hendrerit vel est quis, efficitur dignissim est. |
| 65 | +
|
| 66 | +Bullets with dashes: |
24 | 67 |
|
25 | | -Start of line break end of line break |
| 68 | +- Duis finibus tellus augue, ut dapibus orci vehicula id. |
| 69 | +- Proin in condimentum tellus, ac elementum ligula. |
| 70 | +- Nulla libero nisl, hendrerit vel est quis, efficitur dignissim est. |
26 | 71 |
|
27 | | -Before horizontal line |
28 | | ---- |
29 | | -End of horizontal line |
| 72 | +Bullets without required spaces: |
| 73 | +
|
| 74 | +*bullet 1 no space |
| 75 | +*bullet 2 no space |
| 76 | +*bullet 3 no space |
| 77 | +
|
| 78 | +Ordered list: |
| 79 | +
|
| 80 | +1. Praesent rutrum ex vel velit aliquam. |
| 81 | +2. Et viverra turpis vestibulum. |
| 82 | +3. Pellentesque quis nisi accumsan. |
| 83 | +
|
| 84 | +Ordered list without required spaces: |
| 85 | +
|
| 86 | +1.Step 1 no space |
| 87 | +2.Step 2 no space |
| 88 | +3.Step 3 no space |
| 89 | +
|
| 90 | +# Image |
| 91 | +
|
| 92 | + |
| 93 | +
|
| 94 | +# Links |
| 95 | +
|
| 96 | +[Link text](https://en.wikipedia.org/wiki/Markdown) |
| 97 | +
|
| 98 | +www.nhs.uk |
| 99 | +
|
| 100 | +nhs.uk |
| 101 | +
|
| 102 | +https://www.nhs.uk |
| 103 | +
|
| 104 | +http://nhs.uk |
| 105 | +
|
| 106 | +user@domain.com |
| 107 | +
|
| 108 | +Links with < > symbols: |
| 109 | +
|
| 110 | +<www.google.com> |
| 111 | +
|
| 112 | +<user@domain.com> |
| 113 | +
|
| 114 | +# Lines |
| 115 | +
|
| 116 | +Horizontal line using 3 asterisks |
| 117 | +
|
| 118 | +*** |
30 | 119 |
|
31 | | -This is a paragraph |
| 120 | +Horizontal line using 3 underscores |
32 | 121 |
|
33 | | -By doing a new line this starts a new paragraph |
34 | | -`); |
| 122 | +___ |
| 123 | +`; |
0 commit comments