Commit 9a7d4e1f authored by Chad Woolley's avatar Chad Woolley Committed by Paul Slaughter

Sort spec/frontend/fixtures/api_markdown.yml

- Prevents merge conflicts with https://gitlab.com/gitlab-org/gitlab/-/merge_requests/68671
parent 6f6aedb5
...@@ -2,63 +2,75 @@ ...@@ -2,63 +2,75 @@
# spec/frontend/fixtures/api_markdown.rb and # spec/frontend/fixtures/api_markdown.rb and
# spec/frontend/content_editor/extensions/markdown_processing_spec.js # spec/frontend/content_editor/extensions/markdown_processing_spec.js
--- ---
- name: attachment_image
context: group
markdown: '![test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png)'
- name: attachment_image
context: project
markdown: '![test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png)'
- name: attachment_image
context: project_wiki
markdown: '![test-file](test-file.png)'
- name: attachment_link
context: group
markdown: '[test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip)'
- name: attachment_link
context: project
markdown: '[test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip)'
- name: attachment_link
context: project_wiki
markdown: '[test-file](test-file.zip)'
- name: audio
markdown: '![Sample Audio](https://gitlab.com/gitlab.mp3)'
- name: audio_and_video_in_lists
markdown: |-
* ![Sample Audio](https://gitlab.com/1.mp3)
* ![Sample Video](https://gitlab.com/2.mp4)
1. ![Sample Video](https://gitlab.com/1.mp4)
2. ![Sample Audio](https://gitlab.com/2.mp3)
* [x] ![Sample Audio](https://gitlab.com/1.mp3)
* [x] ![Sample Audio](https://gitlab.com/2.mp3)
* [x] ![Sample Video](https://gitlab.com/3.mp4)
- name: blockquote
markdown: |-
> This is a blockquote
>
> This is another one
- name: bold - name: bold
markdown: '**bold**' markdown: '**bold**'
- name: emphasis - name: bullet_list_style_1
markdown: '_emphasized text_'
- name: inline_code
markdown: '`code`'
- name: inline_diff
markdown: |- markdown: |-
* {-deleted-} * list item 1
* {+added+} * list item 2
- name: strike * embedded list item 3
markdown: '~~del~~' - name: bullet_list_style_2
- name: horizontal_rule
markdown: '---'
- name: html_marks
markdown: |- markdown: |-
* Content editor is ~~great~~<ins>amazing</ins>. - list item 1
* If the changes <abbr title="Looks good to merge">LGTM</abbr>, please <abbr title="Merge when pipeline succeeds">MWPS</abbr>. - list item 2
* 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>. * embedded list item 3
* <cite>The Scream</cite> by Edvard Munch. Painted in 1893. - name: bullet_list_style_3
* <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>
- name: div
markdown: |- markdown: |-
<div>plain text</div> + list item 1
<div> + list item 2
- embedded list item 3
just a plain ol' div, not much to _expect_! - name: code_block
</div>
- name: figure
markdown: |- markdown: |-
<figure> ```javascript
console.log('hello world')
![Elephant at sunset](elephant-sunset.jpg) ```
- name: color_chips
<figcaption>An elephant at sunset</figcaption> markdown: |-
</figure> - `#F00`
<figure> - `#F00A`
- `#FF0000`
![A crocodile wearing crocs](croc-crocs.jpg) - `#FF0000AA`
- `RGB(0,255,0)`
<figcaption> - `RGB(0%,100%,0%)`
- `RGBA(0,255,0,0.3)`
A crocodile wearing _crocs_! - `HSL(540,70%,50%)`
- `HSLA(540,70%,50%,0.3)`
</figcaption>
</figure>
- name: description_list - name: description_list
markdown: |- markdown: |-
<dl> <dl>
...@@ -106,31 +118,57 @@ ...@@ -106,31 +118,57 @@
``` ```
</details> </details>
- name: link - name: div
markdown: '[GitLab](https://gitlab.com)'
- 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)'
- 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)'
- name: code_block
markdown: |- markdown: |-
```javascript <div>plain text</div>
console.log('hello world') <div>
```
just a plain ol' div, not much to _expect_!
</div>
- name: emoji
markdown: ':sparkles: :heart: :100:'
- name: emphasis
markdown: '_emphasized text_'
- name: figure
markdown: |-
<figure>
![Elephant at sunset](elephant-sunset.jpg)
<figcaption>An elephant at sunset</figcaption>
</figure>
<figure>
![A crocodile wearing crocs](croc-crocs.jpg)
<figcaption>
A crocodile wearing _crocs_!
</figcaption>
</figure>
- name: frontmatter_json
markdown: |-
;;;
{
"title": "Page title"
}
;;;
- name: frontmatter_toml
markdown: |-
+++
title = "Page title"
+++
- name: frontmatter_yaml
markdown: |-
---
title: Page title
---
- name: hard_break
markdown: |-
This is a line after a\
hard break
- name: headings - name: headings
markdown: |- markdown: |-
# Heading 1 # Heading 1
...@@ -144,29 +182,44 @@ ...@@ -144,29 +182,44 @@
##### Heading 5 ##### Heading 5
###### Heading 6 ###### Heading 6
- name: blockquote - name: horizontal_rule
markdown: |- markdown: '---'
> This is a blockquote - name: html_marks
>
> This is another one
- name: thematic_break
markdown: |-
---
- name: bullet_list_style_1
markdown: |- markdown: |-
* list item 1 * Content editor is ~~great~~<ins>amazing</ins>.
* list item 2 * If the changes <abbr title="Looks good to merge">LGTM</abbr>, please <abbr title="Merge when pipeline succeeds">MWPS</abbr>.
* embedded list item 3 * 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>.
- name: bullet_list_style_2 * <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>
- name: image
markdown: '![alt text](https://gitlab.com/logo.png)'
- name: inline_code
markdown: '`code`'
- name: inline_diff
markdown: |- markdown: |-
- list item 1 * {-deleted-}
- list item 2 * {+added+}
* embedded list item 3 - name: link
- name: bullet_list_style_3 markdown: '[GitLab](https://gitlab.com)'
- name: math
markdown: |- markdown: |-
+ list item 1 This math is inline $`a^2+b^2=c^2`$.
+ list item 2
- embedded list item 3 This is on a separate line:
```math
a^2+b^2=c^2
```
- name: ordered_list - name: ordered_list
markdown: |- markdown: |-
1. list item 1 1. list item 1
...@@ -177,14 +230,6 @@ ...@@ -177,14 +230,6 @@
134. list item 1 134. list item 1
135. list item 2 135. list item 2
136. list item 3 136. list item 3
- name: task_list
markdown: |-
* [x] hello
* [x] world
* [ ] example
* [ ] of nested
* [x] task list
* [ ] items
- name: ordered_task_list - name: ordered_task_list
markdown: |- markdown: |-
1. [x] hello 1. [x] hello
...@@ -198,12 +243,12 @@ ...@@ -198,12 +243,12 @@
4893. [x] hello 4893. [x] hello
4894. [x] world 4894. [x] world
4895. [ ] example 4895. [ ] example
- name: image - name: reference
markdown: '![alt text](https://gitlab.com/logo.png)' context: project_wiki
- name: hard_break
markdown: |- markdown: |-
This is a line after a\ Hi @gitlab - thank you for reporting this ~bug (#1) we hope to fix it in %1.1 as part of !1
hard break - name: strike
markdown: '~~del~~'
- name: table - name: table
markdown: |- markdown: |-
| header | header | | header | header |
...@@ -212,27 +257,6 @@ ...@@ -212,27 +257,6 @@
| ~~strike~~ | cell with _italic_ | | ~~strike~~ | cell with _italic_ |
# content after table # content after table
- name: emoji
markdown: ':sparkles: :heart: :100:'
- 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
- name: audio
markdown: '![Sample Audio](https://gitlab.com/gitlab.mp3)'
- name: video
markdown: '![Sample Video](https://gitlab.com/gitlab.mp4)'
- name: audio_and_video_in_lists
markdown: |-
* ![Sample Audio](https://gitlab.com/1.mp3)
* ![Sample Video](https://gitlab.com/2.mp4)
1. ![Sample Video](https://gitlab.com/1.mp4)
2. ![Sample Audio](https://gitlab.com/2.mp3)
* [x] ![Sample Audio](https://gitlab.com/1.mp3)
* [x] ![Sample Audio](https://gitlab.com/2.mp3)
* [x] ![Sample Video](https://gitlab.com/3.mp4)
- name: table_of_contents - name: table_of_contents
markdown: |- markdown: |-
[[_TOC_]] [[_TOC_]]
...@@ -248,42 +272,18 @@ ...@@ -248,42 +272,18 @@
# Sit amit # Sit amit
### I don't know ### I don't know
- name: word_break - name: task_list
markdown: Fernstraßen<wbr>bau<wbr>privat<wbr>finanzierungs<wbr>gesetz
- name: frontmatter_yaml
markdown: |-
---
title: Page title
---
- name: frontmatter_toml
markdown: |-
+++
title = "Page title"
+++
- name: frontmatter_json
markdown: |-
;;;
{
"title": "Page title"
}
;;;
- name: color_chips
markdown: |- markdown: |-
- `#F00` * [x] hello
- `#F00A` * [x] world
- `#FF0000` * [ ] example
- `#FF0000AA` * [ ] of nested
- `RGB(0,255,0)` * [x] task list
- `RGB(0%,100%,0%)` * [ ] items
- `RGBA(0,255,0,0.3)` - name: thematic_break
- `HSL(540,70%,50%)`
- `HSLA(540,70%,50%,0.3)`
- name: math
markdown: |- markdown: |-
This math is inline $`a^2+b^2=c^2`$. ---
- name: video
This is on a separate line: markdown: '![Sample Video](https://gitlab.com/gitlab.mp4)'
- name: word_break
```math markdown: Fernstraßen<wbr>bau<wbr>privat<wbr>finanzierungs<wbr>gesetz
a^2+b^2=c^2
```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment