2021-03-17 17:11:29 -04:00
# This data file drives the specs in
# spec/frontend/fixtures/api_markdown.rb and
2021-06-16 14:10:35 -04:00
# spec/frontend/content_editor/extensions/markdown_processing_spec.js
2021-03-17 17:11:29 -04:00
---
- name : bold
markdown : '**bold**'
2021-04-13 08:11:32 -04:00
- name : emphasis
markdown : '_emphasized text_'
- name : inline_code
2021-03-17 17:11:29 -04:00
markdown : '`code`'
2021-08-17 08:08:42 -04:00
- name : inline_diff
markdown : |-
* {-deleted-}
* {+added+}
2021-06-16 14:10:35 -04:00
- name : strike
markdown : '~~del~~'
2021-06-22 11:06:55 -04:00
- name : horizontal_rule
markdown : '---'
2021-08-25 14:11:33 -04:00
- name : html_marks
markdown : |-
* Content editor is ~~great~~<ins>amazing</ins>.
* If the changes <abbr title="Looks good to merge">LGTM</abbr>, please <abbr title="Merge when pipeline succeeds">MWPS</abbr>.
* The English song <q>Oh I do like to be beside the seaside</q> looks like this in Hebrew : <span dir="rtl">אה, אני אוהב להיות ליד חוף הים</span>. In the computer's memory, this is stored as <bdo dir="ltr">אה, אני אוהב להיות ליד חוף הים</bdo>.
* <cite>The Scream</cite> by Edvard Munch. Painted in 1893.
* <dfn>HTML</dfn> is the standard markup language for creating web pages.
* Do not forget to buy <mark>milk</mark> today.
* This is a paragraph and <small>smaller text goes here</small>.
* The concert starts at <time datetime="20:00">20:00</time> and you'll be able to enjoy the band for at least <time datetime="PT2H30M">2h 30m</time>.
* Press <kbd>Ctrl</kbd> + <kbd>C</kbd> to copy text (Windows).
* WWF's goal is to : <q>Build a future where people live in harmony with nature.</q> We hope they succeed.
* The error occured was : <samp>Keyboard not found. Press F1 to continue.</samp>
* The area of a triangle is : 1 /2 x <var>b</var> x <var>h</var>, where <var>b</var> is the base, and <var>h</var> is the vertical height.
* <ruby>漢<rt>ㄏㄢˋ</rt></ruby>
* C<sub>7</sub>H<sub>16</sub> + O<sub>2</sub> → CO<sub>2</sub> + H<sub>2</sub>O
* The **Pythagorean theorem** is often expressed as <var>a<sup>2</sup></var> + <var>b<sup>2</sup></var> = <var>c<sup>2</sup></var>
2021-04-13 08:11:32 -04:00
- name : link
markdown : '[GitLab](https://gitlab.com)'
2021-06-24 08:08:07 -04:00
- name : attachment_link
context : project_wiki
markdown : '[test-file](test-file.zip)'
- name : attachment_link
context : project
markdown : '[test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip)'
- name : attachment_link
context : group
markdown : '[test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip)'
2021-07-13 11:08:38 -04:00
- name : attachment_image
context : project_wiki
markdown : '![test-file](test-file.png)'
- name : attachment_image
context : project
markdown : '![test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png)'
- name : attachment_image
context : group
markdown : '![test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png)'
2021-04-13 08:11:32 -04:00
- name : code_block
markdown : |-
```javascript
console.log('hello world')
```
- name : headings
markdown : |-
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
- name : blockquote
markdown : |-
> This is a blockquote
>
> This is another one
- name : thematic_break
markdown : |-
---
2021-08-20 11:10:24 -04:00
- name : bullet_list_style_1
2021-04-13 08:11:32 -04:00
markdown : |-
* list item 1
* list item 2
* embedded list item 3
2021-08-20 11:10:24 -04:00
- name : bullet_list_style_2
markdown : |-
- list item 1
- list item 2
* embedded list item 3
- name : bullet_list_style_3
markdown : |-
+ list item 1
+ list item 2
- embedded list item 3
2021-04-13 08:11:32 -04:00
- name : ordered_list
markdown : |-
1 . list item 1
2 . list item 2
3 . list item 3
2021-08-26 17:11:25 -04:00
- name : ordered_list_with_start_order
markdown : |-
134 . list item 1
135 . list item 2
136 . list item 3
2021-08-16 05:09:05 -04:00
- name : task_list
markdown : |-
* [ x] hello
* [ x] world
* [ ] example
* [ ] of nested
* [ x] task list
* [ ] items
- name : ordered_task_list
markdown : |-
1 . [x] hello
2 . [x] world
3 . [ ] example
1 . [ ] of nested
1 . [x] task list
2 . [ ] items
2021-08-26 17:11:25 -04:00
- name : ordered_task_list_with_order
markdown : |-
4893 . [x] hello
4894 . [x] world
4895 . [ ] example
2021-04-13 08:11:32 -04:00
- name : image
markdown : '![alt text](https://gitlab.com/logo.png)'
2021-04-21 14:11:09 -04:00
- name : hard_break
markdown : |-
This is a line after a\
hard break
2021-07-13 17:08:20 -04:00
- name : table
markdown : |-
| header | header |
|--------|--------|
2021-08-19 17:10:32 -04:00
| `code` | cell with **bold** |
| ~~strike~~ | cell with _italic_ |
# content after table
2021-08-12 05:09:05 -04:00
- name : emoji
markdown: ':sparkles: :heart : : 100 : '
2021-08-17 14:10:35 -04:00
- name : reference
context : project_wiki
markdown : |-
Hi @gitlab - thank you for reporting this ~bug (#1) we hope to fix it in %1.1 as part of !1
2021-08-28 02:10:17 -04:00
- name : audio
markdown : '![Sample Audio](https://gitlab.com/gitlab.mp3)'
- name : audio_in_lists
markdown : |-
* ![ Sample Audio](https://gitlab.com/1.mp3)
* ![ Sample Audio](https://gitlab.com/2.mp3)
1 . ![Sample Audio](https://gitlab.com/1.mp3)
2 . ![Sample Audio](https://gitlab.com/2.mp3)
* [ x] ![Sample Audio](https://gitlab.com/1.mp3)
* [ x] ![Sample Audio](https://gitlab.com/2.mp3)