Sometimes, We want to add indentation to markdown text lines.

By default, markdown ignores blank spaces.

It includes adding space to the paragraph’s first line Add tab space to markdown text lines.

How to indent a few lines in markdown?

There are multiple ways we can do

  • using pre-tag

    This adds the blank spaces with code blank syntax

normal Text content  one
    indented Text content  one
        indented more  Text content  one

The second way, using the   character

normal Text content  one

    indented Text content  one

        indented more
Text content  one

Render the text as

normal Text content one

    indented Text content one

        indented more Text content one

The third way, using the    character.

   used to display successful spaces in a markdown text

normal Text content  one

      indented Text content  one

        indented more  Text
 content  one

Render as

normal Text content one

      indented Text content one

        indented more Text content one

So, Markdown does not support indentation, so you have to use the above ways to do it.