Allow specifying ?force-text-type=html to Markdown-capable API resources.
Review Request #6406 — Created Oct. 5, 2014 and submitted
Many of our resources support passing
?force-text-type=plain|markdownto
convert to either plain text or Markdown format. Now, these also support
htmlto render to HTML.This is the first step to moving entirely to server-side rendering of
Markdown content.
All unit tests pass.
Tested manually with a couple review requests.
Tool: Pyflakes Processed Files: reviewboard/webapi/tests/test_review_request_draft.py reviewboard/webapi/tests/mixins_review.py reviewboard/webapi/mixins.py reviewboard/webapi/tests/mixins_comment.py Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/tests/test_review_request_draft.py reviewboard/webapi/tests/mixins_review.py reviewboard/webapi/mixins.py reviewboard/webapi/tests/mixins_comment.py