Support preview_markdown action for personal_snippets
What does this MR do?
It adds support of preview_markdown
action for personal snippets. It also extracts this action from projects_controller
and wikis_controller
to a concern as these actions are quite same except for one param for these 3 controllers.
Are there points in the code the reviewer needs to double check?
Why was this MR needed?
In order to make notes for personal snippets working few things need to be prepared. As we want to keep MRs small I try to submit smaller MRs. This is second MR regarding this topic, 1 or 2 more will come.
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together