Skip to content

Render references in content editor

Lee Tickett requested to merge 338531-render-references-in-content-editor into master

What does this MR do?

Issue: #338531 (closed)

GFM supports syntax for referencing issues (#2525235), milestones (%13.4), labels (~UX), MRs (!33636), etc. This MR adds support for them in the content editor.

Screenshots or Screencasts (strongly suggested)

gfm_content_references

How to setup and validate locally (strongly suggested)

  1. Edit a Wiki page.

  2. Type the below code:

    Hi @gitlab - thank you for reporting this ~bug (#1) we hope to fix it in %1.1 as part of !1.

    Note that the references above will convert to links only if the references actually exist. So please create some users, labels, issues / MRs before referencing them.

  3. Click "Use new editor".

  4. The content editor will automatically convert the elements to reference links as you see them live.

  5. Click "save". The content should be serialized back to the original reference.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #338531 (closed)

Edited by Himanshu Kapoor

Merge request reports