2021-03-17 21:11:29 +00:00
|
|
|
# This data file drives the specs in
|
|
|
|
# spec/frontend/fixtures/api_markdown.rb and
|
2021-06-16 18:10:35 +00:00
|
|
|
# spec/frontend/content_editor/extensions/markdown_processing_spec.js
|
2021-03-17 21:11:29 +00:00
|
|
|
---
|
|
|
|
- name: bold
|
|
|
|
markdown: '**bold**'
|
2021-04-13 12:11:32 +00:00
|
|
|
- name: emphasis
|
|
|
|
markdown: '_emphasized text_'
|
|
|
|
- name: inline_code
|
2021-03-17 21:11:29 +00:00
|
|
|
markdown: '`code`'
|
2021-08-17 12:08:42 +00:00
|
|
|
- name: inline_diff
|
|
|
|
markdown: |-
|
|
|
|
* {-deleted-}
|
|
|
|
* {+added+}
|
2021-08-13 12:10:58 +00:00
|
|
|
- name: subscript
|
|
|
|
markdown: H<sub>2</sub>O
|
|
|
|
- name: superscript
|
|
|
|
markdown: 2<sup>8</sup> = 256
|
2021-06-16 18:10:35 +00:00
|
|
|
- name: strike
|
|
|
|
markdown: '~~del~~'
|
2021-06-22 15:06:55 +00:00
|
|
|
- name: horizontal_rule
|
|
|
|
markdown: '---'
|
2021-04-13 12:11:32 +00:00
|
|
|
- name: link
|
|
|
|
markdown: '[GitLab](https://gitlab.com)'
|
2021-06-24 12:08:07 +00: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 15:08:38 +00: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 12:11:32 +00: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: |-
|
|
|
|
---
|
|
|
|
- name: bullet_list
|
|
|
|
markdown: |-
|
|
|
|
* list item 1
|
|
|
|
* list item 2
|
|
|
|
* embedded list item 3
|
|
|
|
- name: ordered_list
|
|
|
|
markdown: |-
|
|
|
|
1. list item 1
|
|
|
|
2. list item 2
|
|
|
|
3. list item 3
|
2021-08-16 09:09:05 +00: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-04-13 12:11:32 +00:00
|
|
|
- name: image
|
|
|
|
markdown: '![alt text](https://gitlab.com/logo.png)'
|
2021-04-21 18:11:09 +00:00
|
|
|
- name: hard_break
|
|
|
|
markdown: |-
|
|
|
|
This is a line after a\
|
|
|
|
hard break
|
2021-07-13 21:08:20 +00:00
|
|
|
- name: table
|
|
|
|
markdown: |-
|
|
|
|
| header | header |
|
|
|
|
|--------|--------|
|
|
|
|
| cell | cell |
|
|
|
|
| cell | cell |
|
|
|
|
- name: table_with_alignment
|
|
|
|
markdown: |-
|
|
|
|
| header | : header : | header : |
|
|
|
|
|--------|------------|----------|
|
|
|
|
| cell | cell | cell |
|
|
|
|
| cell | cell | cell |
|
2021-08-12 09:09:05 +00:00
|
|
|
- name: emoji
|
|
|
|
markdown: ':sparkles: :heart: :100:'
|