---
title: "Markdown"
description: "Markdown field for your content"
url: "https://www.contentstack.com/docs/headless-cms/markdown"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-07-22"
---

# Markdown

The Markdown field enables users to input text in markdown format in an [entry](/docs/headless-cms/about-entries). Markdown text is marked with certain tags or formatting instructions. Once done entering your content, click on the **Preview** tab to preview your formatted text in real time.

**Note:** Contentstack uses the "Markdown" syntax for its Markdown field. You can find more details about the Markdown syntax in [Pagedown](https://code.google.com/archive/p/pagedown/wikis/PageDown.wiki).

This field possesses certain [properties](/docs/headless-cms/about-field-properties) that you can change any time as per your needs. The properties that can be modified are “[Display Name](/docs/headless-cms/display-name),” “[Unique ID](/docs/headless-cms/unique-id),” “[Placeholder Value](/docs/headless-cms/placeholder-value),” “[Instruction Value](/docs/headless-cms/instruction-value),” “[Help Text](/docs/headless-cms/help-text),” “[Mandatory](/docs/headless-cms/mandatory),” “[Multiple](/docs/headless-cms/multiple),” and “[Non-localizable](/docs/headless-cms/non-localizable).”

**Additional Resource:** You can also try out our [Rich Text Editor](/docs/headless-cms/rich-text-editor) and [JSON Rich Text Editor](/docs/headless-cms/about-json-rich-text-editor/). You can refer to our documentation to understand the difference between [Markdown and RTE](/docs/headless-cms/content-modeling-best-practices#rte-vs-markdown).

After adding this field in content type, you will see it on your entry page as shown below.

![Markdown\_1.gif](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt6dc40d9fde78dced/667021ce7a609d0c99a6c264/Markdown_1.gif)

## Commands Supported

You can use the following commands in the Markdown editor to format your content:

**Commands**

**Syntax**

**Description**

Bold

\_\_Sample content\_\_

Use \_\_(double underscore) or _\*\*_ (double asterisk) at the start and end of the content to format it in bold.

Italic

\_Sample content\_

Use \_ or _\*_ at the start and end of the content to format it in italic.

Bold and Italic

\*\_\_Sample content\_\_\*

Use _\*\_\__ (asterisk and double underscore) at the start and _\_\_\*_ at the end of the content to format it in bold and italic.

Heading 1

\# Sample content 

Use \# at the start of the content to format it as Heading 1.

Heading 2

\## Sample content

Use ## at the start of the content to format it as Heading 2.

Heading 3

\### Sample content

Use \### at the start of the content to format it as Heading 3.

Heading 4

\#### Sample content 

Use \#### at the start of the content to format it as Heading 4.

Heading 5

\##### Sample content 

Use \##### at the start of the content to format it as Heading 5.

Heading 6

\###### Sample content

Use \###### at the start of the content to format it as Heading 6.

Block Quote

Sample content

Use \> at the start of the content to add block quote formatting.

Ordered List

1\. Sample content for Ordered List

Use 1\. or 1) at the start of the content to add an ordered list.

Unordered List

\* Sample content for Unordered List

Use _\*_ or - at the start of the content to add an unordered list.

Code Snippet

\`Sample content for single line/word a code\`

Use \` at the start and end of the content for single line code snippets.

Multi Line Code

\`\`\`Multi Line

Code\`\`\`

Use \`\`\` at the start and end of the content for multi line code snippets.

Horizontal Rules

\*\*\*

Use \*\*\* or \--- or \_\_\_ to add horizontal rules.

Link

\[Text to display\](URL)

Enter the display text for the URL within \[\] followed by the URL within ().

Image

!\[alt text\](image-URL) 

Use ! at the beginning, then enter the alt text within \[\] followed by the image source within (). 

HTML Elements

<p>Hello World!<p>

<pre>Hello World!</pre>

Use HTML tags to format text directly in the editor. You must separate block level HTML tags, such as <div>, <pre>, <p>, etc. from surrounding text by blank lines, and avoid indenting the start and end tags with tabs or spaces.

Strikethrough

~~Sample Content~~

Use ~~ at the beginning and end of the content to strikethrough.

Table

| Title 1 | Title 2 |

| ------ | ------- |

| Point 1 | Point 1 |

| Point 2 | Point 2 |

Use vertical bars | at the beginning and end for each row.

Comments

<!-- Sample content for comment -->

Use <!-- at the start and \--> at the end of the content to add a comment.