Return to site

Markdown Plus 1 2 0

broken image


Many of the multi-line text fields in Review Board support a simple markuplanguage called Markdown. This allows you to perform basic formattingof your text (such as creating lists or denoting emphasis), as well as morecomplex things like including syntax-highlighted code samples or images.

Markdown Plus Preferences. Show toolbar: Editor: Preview. Editor theme: Editor font size: Key binding: Gantt diagram axis format: Time formatting reference. Custom CSS files: (You need to restart the editor to apply the CSS files) Markdown Plus themes. Custom JS files: (You need to restart the editor to apply the JS files) Markdown Plus. Mark down (markdown), also known as discount, is the percentage of decrease in an item's asking price, compared to the item's original price. This popular retail concept is used to decrease an item's price for various reasons such as: to shrink inventory, to make room for new product, to reduce surplus, or simply to provide consumers with.

This document does not intend to be a full reference on the Markdown language,but rather a quick primer on the basic features that are useful when writingreview requests or reviews.

Note

Review Board's implementation of Markdown shares a lot in common withGitHub Flavored Markdown. While it'spart of the basic Markdown spec, embedding raw HTML is not allowed, toprevent cross-site scripting attacks. If you include HTML tags, they willbe shown to the user as-is, rather than treated as HTML.

Basic Markdown Syntax¶

Headers¶

Headers are added by underlining the relevant text with equals signs ordashes:

Lists¶

Markdown supports both ordered (numbered) and unordered (bulleted) lists. Theseare written using a natural syntax. Ordered lists use numbers followed byperiods:

While unordered lists can be defined with asterisks, plus signs, or hyphens:

Emphasis¶

Text can be emphasized by surrounding it with asterisks or underscores. Theresulting text will be shown in a heavier font:

Links¶

Basic links can be added to your text using a combination of square bracketsand parentheses:

Note

In most cases, you won't need to build your links yourself. Any URLs thatare included in your text will automatically be turned into links. Inaddition, certain special strings like 'bug 234' or '/r/583' will beautomatically linked to the relevant bug or review request.

Markdown Plus 1 2 0t

Images¶

If you have images which are accessible from a URL, you can embed them intoyour text using a syntax similar to links. These start with an exclamationmark, followed by square brackets containing the 'alt' attribute, followed byparentheses with the URL to the image:

Tables¶

Simple tables can be inserted by drawing the table using a combination ofvertical bars and hyphens:

Code Samples¶

When writing reviews, It's often very useful to write small snippets of code.Markdown allows you to notate which parts of your text are code or terminaltext, and optionally render code with syntax highlighting. This can beespecially nice for proposing changes.

Markdown Plus 1 2 0 1

Code can be formatted inside a line by enclosing the text in single backticks.This is often useful when referring to symbols from the code:

Markdown Plus 1 2 0

Longer code samples can be denoted using block notation. Any blocks which areindented at least 4 spaces will be treated as a code block. This code will notbe syntax-highlighted, but instead will be shown as plain text.

In addition, code blocks can be notated without indentation by surroundingthe block with triple backticks using the syntax from GitHub FlavoredMarkdown.

You can specify a language name after the first set of backticks in order toenable syntax highlighting for the code. For instance:

Some of the most common language codes you may want to use include:

  • C: c
  • C++: cpp, c++
  • C#: csharp
  • CSS: css
  • CoffeeScript: coffeescript
  • HTML: html
  • JSON: json
  • Java: java
  • JavaScript: javascript, js
  • Objective-C: objective-c, obj-c, objc
  • Objective-C++: objective-c++, obj-c++, objc++
  • PHP: php
  • Perl: perl, pl
  • Python 3: python3, py3
  • Python: python, py
  • Ruby: ruby, rb
  • Snobol: snobol
  • XML: xml

For the complete list, look through the Pygmentslist of lexers. Any of the'short names' listed can be used.

Markdown Plus 1 2 0 2

Escaping¶

Because Markdown syntax endows many common punctuation symbols with specialmeaning, these can sometimes unintentionally trigger formatting. In this case,you can avoid this by escaping the relevant character with a backslash:

Markdown Plus 1 2 0 3

Backslash escapes can be used for the following characters:





broken image