Editor formatting reference

Some fields in TestRail allow for rich-text formatting. You can use rich-text formatting in TestRail by using an easy to learn syntax called Markdown. For example, to make a word appear italic, just surround it with asterisks like *this*. Likewise, to make a word appear bold, surround it with two asterisks.

There are syntax elements to make lists, add links, include code blocks, headers, images and a lot more. Please see below for a list of available syntax options and for examples on how to use them.

The syntax reference and highlighting was inspired by Stack Overflow.

Italics and bolds

There are multiple ways to emphasize words:

*This is italicized*, and so is _this_.
**This is bold**, and so is __this__.
You can use ***italics and bold together*** if you ___have to___.

Code and preformatted text

To make a code block, indent four spaces:

    printf("hello world!");  /* a multiline 
                                comment */

The text will be wrapped in tags and displayed in a monospaced typeface. The first four spaces will be stripped off, but all other whitespace will be preserved.

You cannot use Markdown or HTML within a code block, which makes them a convenient way to show samples of Markdown or HTML syntax:

        You would hate this if it weren't
        wrapped in a code block.

If code blocks are embedded in text blocks, they require an empty line before and after.

Code spans

Use backticks to create an inline <code> span:

Press the `<Tab>` key, then type a `$`.

(The backtick key is in the upper left corner of most keyboards.)

Like code blocks, code spans will be displayed in a monospaced typeface. Markdown and HTML will not work within them.

There are two ways to write links. The second one is easier to read than the first:

Here's an inline link to [Google](http://www.google.com/).
Here's a reference-style link to [Google] [1].

  [1]: http://www.google.com/

The link definitions can appear anywhere in the document – before or after the place where you use them.


You can underline text to make the two top-level headers:

Header 1

Header 2

The number of = or - signs doesn't matter; you can get away with just one. But using enough to underline the text makes your titles look better in plain text.

You can also use hash marks for several levels of headers:

# Header 1 #
## Header 2 ##
### Header 3 ###

The closing # characters are optional.

Horizontal rules

You can insert a horizontal rule by putting three or more hyphens, asterisks, or underscores on a line by themselves:


You can also use spaces between the characters:

-  -  -  -

All of these examples produce the same output.

Simple lists

A bulleted list:

- You can use a minus sign for a bullet
+ Or plus sign
* Or an asterisk

A numbered list:

1. Numbered lists are easy
2. Markdown keeps track of the numbers for you
7. So this will be item 3.

A double-spaced list:

- This list gets wrapped in <p> tags

- So there will be extra space between items


Blockquotes are indented:

> The syntax is based on the way email programs
> usually do quotations. You don't need to hard-wrap
> the paragraphs in your blockquotes, but it looks much nicer if you do.


Images are exactly like links, but they have an exclamation point in front of them:

![Valid XHTML] (http://w3.org/Icons/valid-xhtml10)

The word in square brackets is the alt text, which gets displayed if the browser can't show the image. Be sure to include meaningful alt text for screen-reading software.


Requires TestRail 5.0 or later.

Tables can be formatted as follows:

||| :Page | :Option      | :Value | :Error Range
|| Page 1 | Page Margin  | 2cm    | 0.5cm 
|| Page 2 | Zoom Percent | 120%   | 0
|| Page 3 | Tab Depth    | 5      | 4-6 
|| Page 4 | Type Speed   | 20     | 15-25 

The first line specifies the table header and column alignments. The alignments are determined by colon characters in the respective header cells at the beginning/end of the cells. The following alignments are supported:

:Header Left-aligned (default)
:Header: Centered
Header: Right-aligned

The table cells themselves support a limited set of rich-text formatting. The following features are supported inside a table cell:

Advanced lists

You can put other Markdown blocks in a list; just indent four spaces for each nesting level:

1. Lists in a list item:
    - Indented four spaces.
        * indented eight spaces.
    - Four spaces again.

2. Multiple paragraphs in a list items:

    It's best to indent the paragraphs four spaces.
    You can get away with three, but it can get
    confusing when you nest other things.
    Stick to four.

3. Preformatted text in a list item:

        Skip a line and indent eight spaces.
        That's four spaces for the list
        and four to trigger the code block.

Advanced blockquotes

You can put other Markdown blocks in a blockquote; just add a > followed by a space:

Paragraph breaks in a blockquote:

> The > on the blank lines is optional.
> Include it or don't; Markdown doesn't care.
> But your plain text looks better to
> humans if you include the extra `>`
> between paragraphs.

Blockquotes within a blockquote:

> A standard blockquote is indented
>> A nested blockquote is indented more
>>>> You can nest to any depth.

Lists in a blockquote:

> - A list in a blockquote
> - With a > and space in front of it
>    * A sublist

Preformatted text in a blockquote:

>     Indent five spaces total. The first
>     one is part of the blockquote designator.