Skip to content

Ensure that cached_markdown_version is handled correctly for CommonMark

Brett Walker requested to merge bw-commonmark-cached-markdown-version into master

What does this MR do?

When a cached markdown field is saved, it updates the cached_markdown_version field to the latest value. As we don't want RedCarpet rendered fields to be upgraded to CommonMark fields, add the logic to upgrade the version to only the latest RedCarpet or CommonMark version.

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

Why was this MR needed?

See above

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ce/issues/43011

Edited by Brett Walker

Merge request reports