reviewboard.reviews.ui.markdownui¶
- class MarkdownReviewUI(review_request, obj)[source]¶
Bases:
TextBasedReviewUI
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).
- rendered_chunk_generator_cls[source]¶
alias of
MarkdownDiffChunkGenerator
- js_view_class = 'RB.MarkdownReviewableView'[source]¶
The name of the JavaScript view class to use for the Review UI.
- generate_render()[source]¶
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.
- __annotations__ = {}¶