Javatpoint Logo
Javatpoint Logo

Italics in Markdown

The italics command is used to italicize the text. It is similar to the old in the Microsoft word and other text formatting documents. We can use the italic command for single word, multiple words, sentence, paragraphs etc. depending on the formatting style for the document.

In Markdown, there are two commands to italicize the text.

1. Using Underscore symbol

The text inserted between the two underscores symbol appears as italic text at the output.

For example,

Output

Text

An underscore should appear both at the beginning and at the end. Otherwise, the output may not be the desired italic text.

2. Using Asterisk symbol

We can also use a single asterisk before and after the text to produce the output text as italic.

For example,

Output

Text

Note: There should be no space between the underscores or asterisks and the text. Both the symbols and the text inside it should be written without any space. Otherwise, the underscore and the asterisk symbols will be considered as the text by default.

Error

The error arises when we insert an extra space between the symbols and text.

For example,

There is one space before and after the text in both the cases.

Output:

The output will appear as:

* Text is written here *
_ Text is written here _

Reason: The output is the same as that of input. It is due to the extra space before and after the text, which is considered as text by default. Markdown will not consider it as a syntax. To avoid such issue, there should be no space before and after the text.

Examples

Example 1:

Output

Markdown is a plaintext language similar to the Latex.

Example 2:

Output

Markdown language is simple and easy to learn.






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA