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 2
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/evolutions/__init__.py |
---|
reviewboard/reviews/evolutions/rich_text.py |
---|
reviewboard/static/lib/js/marked.js |
---|
reviewboard/static/lib/js/google-code-prettify/lang-apollo.js |
---|
reviewboard/static/lib/js/google-code-prettify/lang-basic.js |
---|
reviewboard/static/lib/js/google-code-prettify/lang-clj.js |
---|
reviewboard/static/lib/js/google-code-prettify/lang-css.js |
---|
reviewboard/static/lib/js/google-code-prettify/lang-dart.js |
---|
reviewboard/static/lib/js/google-code-prettify/lang-erlang.js |
---|
reviewboard/static/lib/js/google-code-prettify/lang-go.js |
---|
reviewboard/static/lib/js/google-code-prettify/lang-hs.js |
---|
reviewboard/static/lib/js/google-code-prettify/lang-lisp.js |
---|
reviewboard/static/lib/js/google-code-prettify/lang-llvm.js |
---|
reviewboard/static/lib/js/google-code-prettify/lang-lua.js |
---|
reviewboard/static/lib/js/google-code-prettify/lang-ml.js |
---|
reviewboard/static/lib/js/google-code-prettify/lang-mumps.js |
---|
reviewboard/static/lib/js/google-code-prettify/lang-n.js |
---|
reviewboard/static/lib/js/google-code-prettify/lang-pascal.js |
---|
reviewboard/static/lib/js/google-code-prettify/lang-proto.js |
---|