Render new RRs, Reviews and Comments as markdown.
Review Request #3892 — Created Feb. 19, 2013 and discarded — Latest diff uploaded
What has been done, - Add rich_text db evolution script. - All old ReviewRequests, Reviews and Comments are marked as `rich_text = False` - All later ReviewRequests, Reviews and Comments will be marked as `rich_text = True` - Enable markdown rendering with code highlight for all pre-text blocks - Use `marked` js lib render text - Use `google code prettify` for syntax highlighting - Rendered text are inserted along the page loading process using `document.write()` - Use single template file to generate text blocks - Always place text inside <pre> tag - Adjust the css style for markdown text
Execute `./reviewboard/manage.py evolve --execute` on RB 1.7.6 database. - All reviews and comments are marked as `rich_text = False` Then post a new review. - The new review is marked as `rich_text = True` - The new review is rendered as Markdown with `.rich-text` class attribute - The old reviews stays as they used to be
Diff Revision 1
This is not the most recent revision of the diff. The latest diff is revision 8. See what's changed.
orig
1
2
3
4
5
6
7
8
reviewboard/reviews/models.py |
---|
reviewboard/reviews/views.py |
---|
reviewboard/reviews/evolutions/__init__.py |
---|
reviewboard/reviews/evolutions/rich_text.py |
---|
reviewboard/templates/reviews/review_detail.html |
---|