Skip to main content

Markdown syntax

Markdown is a markup language used for formatting text in input fields where common tools for text formats are missing.

For example, Markdown can be used to create headings or bold, italic or linked text. The syntax is simplified compared to html code.

A heading size that reads in html:

<H1>Title text</h1>

is expressed with markdown as

# Headline text

Below are some common examples.


# Main heading

## Intermediate heading

### Subheading

Line break

Two spaces at the end of a row
provides a simple line break.

A plain blank line in text

provides paragraph space.

Text formatting'


**bold text**


Horizontal line:



Item List:

  * Apples
  * Oranges
  * Pear

Numbered list:

  1. Apples
  2. Oranges
  3. Pears


Links in Markdown

[linked text](URL)

Note: URL must contain https://

[linked text](mailto:email address)

Links in HTML

A link expressed with Markdown have the disadvantage that it opens page in the same window as the form, which is not preferable. Therefore, there is also support for entering links in HTML code. In order for the link to open the page in a new window / new tab, special target attribute ("target") need to be set in the code.

The code follows the principle:

<a href="URL of target page" target="_blank">The clickable link text in the form</a>

For example, a typical link might look like this:

<a href="" target="_blank”>Read more on KTH's website</a>

The target attribute should not be included if you enter an e-mail address instead of a URL. However, the email address needs to be preceded by a mailto prefix. For example, the HTML code looks like this:

<a href="">Email us at</a>


![text displayed where image cannot be loaded](image URL)

More about Markdown syntax

Did you find this page useful?
Thank you for helping us!
Belongs to: KTH Intranet
Last changed: Feb 18, 2020