Saturday, January 11, 2025
HomeProgrammingHow to Indent a Few Lines in Markdown Markup?

How to Indent a Few Lines in Markdown Markup?

Here’s how you can indent lines in Markdown in simple terms:

1. For a Blockquote (Indented Text)

To indent text, put a > at the beginning of each line:

Example:

markdown Copy code

> This text is indented.

> Another indented line.

It will look like this when rendered:

See also  Java UUID

This text is indented.

Another indented line.

2. For Code Blocks

If you want to indent text like it’s part of a code block, add 4 spaces (or a tab) at the start of the line:

Example:

markdown Copy code

This is indented like code.

See also  PHP Switch

Another indented line.

It will show like this:

vbnet

Copy code

This is indented like code.

Another indented line.

3. For Lists

To make a list with sub-items, indent the sub-items by adding spaces or tabs:

Example:

markdown Copy code

– Item 1

– Sub-item 1

See also  Cloud Computing Applications

– Sub-item 2

– Item 2

It will show like this:

Item 1

Sub-item 1

Sub-item 2

Item 2

RELATED ARTICLES
0 0 votes
Article Rating

Leave a Reply

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
- Advertisment -

Most Popular

Recent Comments

0
Would love your thoughts, please comment.x
()
x