Jump to >


class MarkdownReviewUI(review_request, obj)[source]

A Review UI for markdown files.

This renders the markdown to HTML, and allows users to comment on each top-level block (header, paragraph, list, code block, etc).


alias of reviewboard.reviews.chunk_generators.MarkdownDiffChunkGenerator


Generates a render of the text.

By default, this won’t do anything. Subclasses should override it to turn the raw text into some form of rendered content. For example, rendering Markdown.

get_source_lexer(filename, data)[source]

Returns the lexer that should be used for the text.

By default, this will attempt to guess the lexer based on the filename, falling back to a plain-text lexer.

Subclasses can override this to choose a more specific lexer.