Render new RRs, Reviews and Comments as markdown.

Review Request #3892 — Created Feb. 19, 2013 and discarded — Latest diff uploaded

Information

Review Board
master

Reviewers

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
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
This diff has been split across 2 pages: 1 2 >
Loading...