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.
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.
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.
The error arises when we insert an extra space between the symbols and text.
There is one space before and after the text in both the cases.
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.
Markdown is a plaintext language similar to the Latex.
Markdown language is simple and easy to learn.