Skip to content

Markdown Live preview for Source Editor

Denys Mishunov requested to merge 280798-markdown-live-preview into master

What does this MR do?

Introduces the Live Preview functionality for the markdown extension of Source Editor. At the moment, the extension is only used when editing markdown files in a repository (single-file editor). Live Preview for WebIDE will be added as a separate MR.

Screenshots or Screencasts (strongly suggested)

Screenshot_2021-08-12_at_02.30.12

How to setup and validate locally (strongly suggested)

  1. Open a file in a project
  2. Click "Edit" (not WebIDE or Gitpod)
  3. You will get the regular instance of Source editor at this moment
  4. While focused in the editor do one of the following:
    • right-click and select "Preview Markdown", or
    • press SHIFT + Command + P (Shift + Ctrl + P on Windows) Screenshot_2021-08-12_at_02.26.25
  5. This will open the live preview panel to the right of the editor

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #280798 (closed)

Edited by Denys Mishunov

Merge request reports

Loading