diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-02 06:07:57 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-02 06:07:57 +0300 |
commit | 0409a31740fa29fa1131c0496da16677cb3debe4 (patch) | |
tree | 4cbcd702a01145e8acd723f21b6bd52f3c6639d0 /glfm_specification/input | |
parent | b26eec8cbcf32085079eee0e196456eccefc993f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'glfm_specification/input')
3 files changed, 621 insertions, 0 deletions
diff --git a/glfm_specification/input/gitlab_flavored_markdown/glfm_example_metadata.yml b/glfm_specification/input/gitlab_flavored_markdown/glfm_example_metadata.yml index 7fc1f9d9be0..84ce1d7a368 100644 --- a/glfm_specification/input/gitlab_flavored_markdown/glfm_example_metadata.yml +++ b/glfm_specification/input/gitlab_flavored_markdown/glfm_example_metadata.yml @@ -12,3 +12,20 @@ 08_03_00__gitlab_internal_extension_markdown__markdown_preview_api_request_overrides__006: ee: true api_request_override_path: /groups/glfm_group/-/wikis/new_page/preview_markdown +08_04_01__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_image_for_group__001: + api_request_override_path: /groups/glfm_group/preview_markdown +08_04_02__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_image_for_project__001: + api_request_override_path: /glfm_group/glfm_project/preview_markdown +08_04_03__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_image_for_project_wiki__001: + api_request_override_path: /glfm_group/glfm_project/-/wikis/new_page/preview_markdown +08_04_04__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_group__001: + api_request_override_path: /groups/glfm_group/preview_markdown +08_04_05__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_project__001: + api_request_override_path: /glfm_group/glfm_project/preview_markdown +08_04_06__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_project_wiki__001: + api_request_override_path: /glfm_group/glfm_project/-/wikis/new_page/preview_markdown +08_04_07__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_group_wiki__001: + ee: true + api_request_override_path: /groups/glfm_group/-/wikis/new_page/preview_markdown +08_04_46__gitlab_internal_extension_markdown__migrated_golden_master_examples__reference_for_project_wiki__001: + api_request_override_path: /glfm_group/glfm_project/-/wikis/new_page/preview_markdown diff --git a/glfm_specification/input/gitlab_flavored_markdown/glfm_example_status.yml b/glfm_specification/input/gitlab_flavored_markdown/glfm_example_status.yml index a0ce7f44a3c..e986f5309e8 100644 --- a/glfm_specification/input/gitlab_flavored_markdown/glfm_example_status.yml +++ b/glfm_specification/input/gitlab_flavored_markdown/glfm_example_status.yml @@ -60,3 +60,21 @@ skip_running_conformance_wysiwyg_tests: Not yet implemented. See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/92507#note_1068159236 skip_running_snapshot_wysiwyg_html_tests: Not yet implemented. See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/92507#note_1068159236 skip_running_snapshot_prosemirror_json_tests: Not yet implemented. See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/92507#note_1068159236 +08_04_06__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_project_wiki__001: + skip_update_example_snapshot_html_wysiwyg: The current frontend example doesn't include the path, need to look into why not + skip_update_example_snapshot_prosemirror_json: The current frontend example doesn't include the path, need to look into why not + skip_running_conformance_wysiwyg_tests: The current frontend example doesn't include the path, need to look into why not + skip_running_snapshot_wysiwyg_html_tests: The current frontend example doesn't include the path, need to look into why not + skip_running_snapshot_prosemirror_json_tests: The current frontend example doesn't include the path, need to look into why not +08_04_44__gitlab_internal_extension_markdown__migrated_golden_master_examples__ordered_task_list__001: + skip_update_example_snapshot_html_wysiwyg: Example currently fails. See https://gitlab.com/gitlab-org/gitlab/-/issues/383866 + skip_update_example_snapshot_prosemirror_json: Example currently fails. See https://gitlab.com/gitlab-org/gitlab/-/issues/383866 + skip_running_conformance_wysiwyg_tests: Example currently fails. See https://gitlab.com/gitlab-org/gitlab/-/issues/383866 + skip_running_snapshot_wysiwyg_html_tests: Example currently fails. See https://gitlab.com/gitlab-org/gitlab/-/issues/383866 + skip_running_snapshot_prosemirror_json_tests: Example currently fails. See https://gitlab.com/gitlab-org/gitlab/-/issues/383866 +08_04_50__gitlab_internal_extension_markdown__migrated_golden_master_examples__task_list__001: + skip_update_example_snapshot_html_wysiwyg: Example currently fails. See https://gitlab.com/gitlab-org/gitlab/-/issues/383866 + skip_update_example_snapshot_prosemirror_json: Example currently fails. See https://gitlab.com/gitlab-org/gitlab/-/issues/383866 + skip_running_conformance_wysiwyg_tests: Example currently fails. See https://gitlab.com/gitlab-org/gitlab/-/issues/383866 + skip_running_snapshot_wysiwyg_html_tests: Example currently fails. See https://gitlab.com/gitlab-org/gitlab/-/issues/383866 + skip_running_snapshot_prosemirror_json_tests: Example currently fails. See https://gitlab.com/gitlab-org/gitlab/-/issues/383866 diff --git a/glfm_specification/input/gitlab_flavored_markdown/glfm_internal_extensions.md b/glfm_specification/input/gitlab_flavored_markdown/glfm_internal_extensions.md index d2b94806826..4d5b16b7ec0 100644 --- a/glfm_specification/input/gitlab_flavored_markdown/glfm_internal_extensions.md +++ b/glfm_specification/input/gitlab_flavored_markdown/glfm_internal_extensions.md @@ -110,4 +110,590 @@ also requires an EE license enabling the `group_wikis` feature: . <p><a href="group-wikis-test-file">group-wikis-test-file</a></p> ```````````````````````````````` + +## Migrated golden master examples + +### attachment_image_for_group + +```````````````````````````````` example gitlab +![test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### attachment_image_for_project + +```````````````````````````````` example gitlab +![test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### attachment_image_for_project_wiki + +```````````````````````````````` example gitlab +![test-file](test-file.png) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### attachment_link_for_group + +```````````````````````````````` example gitlab +[test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### attachment_link_for_project + +```````````````````````````````` example gitlab +[test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### attachment_link_for_project_wiki + +```````````````````````````````` example gitlab +[test-file](test-file.zip) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### attachment_link_for_group_wiki + +```````````````````````````````` example gitlab +[test-file](test-file.zip) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### audio + +```````````````````````````````` example gitlab +![Sample Audio](https://gitlab.com/gitlab.mp3) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### audio_and_video_in_lists + +```````````````````````````````` example gitlab +* ![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) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### blockquote + +```````````````````````````````` example gitlab +> This is a blockquote +> +> This is another one +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### bold + +```````````````````````````````` example gitlab +**bold** +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### bullet_list_style_1 + +```````````````````````````````` example gitlab +* list item 1 +* list item 2 + * embedded list item 3 +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### bullet_list_style_2 + +```````````````````````````````` example gitlab +- list item 1 +- list item 2 + * embedded list item 3 +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### bullet_list_style_3 + +```````````````````````````````` example gitlab ++ list item 1 ++ list item 2 + - embedded list item 3 +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### code_block_javascript + +```````````````````````````````` example gitlab +```javascript + console.log('hello world') +``` +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### code_block_plaintext + +```````````````````````````````` example gitlab +``` + plaintext +``` +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### code_block_unknown + +```````````````````````````````` example gitlab +```foobar + custom_language = >> this << +``` +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### color_chips + +```````````````````````````````` example gitlab +- `#F00` +- `#F00A` +- `#FF0000` +- `#FF0000AA` +- `RGB(0,255,0)` +- `RGB(0%,100%,0%)` +- `RGBA(0,255,0,0.3)` +- `HSL(540,70%,50%)` +- `HSLA(540,70%,50%,0.3)` +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### description_list + +```````````````````````````````` example gitlab +<dl> +<dt>Frog</dt> +<dd>Wet green thing</dd> +<dt>Rabbit</dt> +<dd>Warm fluffy thing</dd> +<dt>Punt</dt> +<dd>Kick a ball</dd> +<dd>Take a bet</dd> +<dt>Color</dt> +<dt>Colour</dt> +<dd> + +Any hue except _white_ or **black** + +</dd> +</dl> +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### details + +```````````````````````````````` example gitlab +<details> +<summary>This is the visible summary of the collapsible section</summary> + +1. collapsed markdown +2. more collapsed markdown + +</details> +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### diagram_kroki_nomnoml + +```````````````````````````````` example gitlab +```nomnoml + #stroke: #a86128 + [<frame>Decorator pattern| + [<abstract>Component||+ operation()] + [Client] depends --> [Component] + [Decorator|- next: Component] + [Decorator] decorates -- [ConcreteComponent] + [Component] <:- [Decorator] + [Component] <:- [ConcreteComponent] + ] +``` +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### diagram_plantuml + +```````````````````````````````` example gitlab +```plantuml + Alice -> Bob: Authentication Request + Bob --> Alice: Authentication Response + + Alice -> Bob: Another authentication Request + Alice <-- Bob: Another authentication Response +``` +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### diagram_plantuml_unicode + +```````````````````````````````` example gitlab +```plantuml +A -> B : Text with norwegian characters: æøå +``` +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### div + +```````````````````````````````` example gitlab +<div>plain text</div> +<div> + +just a plain ol' div, not much to _expect_! + +</div> +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### emoji + +```````````````````````````````` example gitlab +:sparkles: :heart: :100: +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### emphasis + +```````````````````````````````` example gitlab +_emphasized text_ +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### figure + +```````````````````````````````` example gitlab +<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> +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### footnotes + +```````````````````````````````` example gitlab +A footnote reference tag looks like this: [^1] + +This reference tag is a mix of letters and numbers. [^footnote] + +[^1]: This is the text inside a footnote. + +[^footnote]: This is another footnote. +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### frontmatter_json + +```````````````````````````````` example gitlab +;;; +{ + "title": "Page title" +} +;;; +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### frontmatter_toml + +```````````````````````````````` example gitlab ++++ +title = "Page title" ++++ +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### frontmatter_yaml + +```````````````````````````````` example gitlab +--- +title: Page title +--- +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### hard_break + +```````````````````````````````` example gitlab +This is a line after a\ +hard break +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### headings + +```````````````````````````````` example gitlab +# Heading 1 + +## Heading 2 + +### Heading 3 + +#### Heading 4 + +##### Heading 5 + +###### Heading 6 +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### horizontal_rule + +```````````````````````````````` example gitlab +--- +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### html_marks + +```````````````````````````````` example gitlab +* 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 occurred 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> +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### image + +```````````````````````````````` example gitlab +![alt text](https://gitlab.com/logo.png) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### inline_code + +```````````````````````````````` example gitlab +`code` +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### inline_diff + +```````````````````````````````` example gitlab +* {-deleted-} +* {+added+} +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### label + +```````````````````````````````` example gitlab +~bug +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### link + +```````````````````````````````` example gitlab +[GitLab](https://gitlab.com) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### math + +```````````````````````````````` example gitlab +This math is inline $`a^2+b^2=c^2`$. + +This is on a separate line: + +```math +a^2+b^2=c^2 +``` +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### ordered_list + +```````````````````````````````` example gitlab +1. list item 1 +2. list item 2 +3. list item 3 +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### ordered_list_with_start_order + +```````````````````````````````` example gitlab +134. list item 1 +135. list item 2 +136. list item 3 +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### ordered_task_list + +```````````````````````````````` example gitlab +1. [x] hello +2. [x] world +3. [ ] example + 1. [ ] of nested + 1. [x] task list + 2. [ ] items +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### ordered_task_list_with_order + +```````````````````````````````` example gitlab +4893. [x] hello +4894. [x] world +4895. [ ] example +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### reference_for_project_wiki + +```````````````````````````````` example gitlab +Hi @gfm_user - thank you for reporting this ~"UX bug" (#1) we hope to fix it in %1.1 as part of !1 +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### strike + +```````````````````````````````` example gitlab +~~del~~ +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### table + +```````````````````````````````` example gitlab +| header | header | +|--------|--------| +| `code` | cell with **bold** | +| ~~strike~~ | cell with _italic_ | + +# content after table +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### table_of_contents + +```````````````````````````````` example gitlab +[[_TOC_]] + +# Lorem + +Well, that's just like... your opinion.. man. + +## Ipsum + +### Dolar + +# Sit amit + +### I don't know +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### task_list + +```````````````````````````````` example gitlab +* [x] hello +* [x] world +* [ ] example + * [ ] of nested + * [x] task list + * [ ] items +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### video + +```````````````````````````````` example gitlab +![Sample Video](https://gitlab.com/gitlab.mp4) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### word_break + +```````````````````````````````` example gitlab +Fernstraßen<wbr>bau<wbr>privat<wbr>finanzierungs<wbr>gesetz +. +TODO: Write canonical HTML for this example +```````````````````````````````` <!-- END TESTS --> |