Skip to content

GitLab Next

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Merge requests
  • !18926
Project 'gitlab-org/gitlab-ce' was moved to 'gitlab-org/gitlab-foss'. Please update any links and bookmarks that may still have the old path.
Merged
Created May 12, 2018 by blackst0ne@blackst0neDeveloper8 of 16 tasks completed8/16 tasks
  • Review changes

  • Download
  • Email patches
  • Plain diff

Resolve "Expand API: Render an arbitrary Markdown document"

  • Overview 22
  • Commits 14
  • Pipelines 16
  • Changes 8

What does this MR do?

Adds /api/v4/markdown API endpoint to render markdown text.

Parameter Type Required Description
text String Yes The markdown text to render
gfm Boolean No (optional) Render text using GitLab Flavored Markdown
project String No (optional) The full path of a project to use as the context when creating references using GitLab Flavored Markdown

Notes

  1. There is no option to chose a markdown engine. The common_mark is used because [we are migrating to CommonMark] (#43011 (closed)).
  2. The endpoint was added only to APIv4 because APIv3 is deprecated and about to be dropped.

Todo

  • add documentation
  • add specs
  • leave a comment in the issue when this MR is merged

Are there points in the code the reviewer needs to double check?

No.

Why was this MR needed?

Improve API

Screenshots (if relevant)

No.

Does this MR meet the acceptance criteria?

  • Changelog entry added, if necessary
  • Documentation created/updated
  • API support added
  • Tests added for this feature/bug
  • Review
    • Has been reviewed by UX
    • Has been reviewed by Frontend
    • Has been reviewed by Backend
    • Has been reviewed by Database
  • Conform by the merge request performance guides
  • Conform by the style guides
  • Squashed related commits together
  • Internationalization required/considered
  • End-to-end tests pass (package-and-qa manual pipeline job)

What are the relevant issue numbers?

Closes #19861 (closed)

Edited May 12, 2018 by blackst0ne
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 19861-expand-api-render-an-arbitrary-markdown-document