Contents
What is Markdown?
Markdown is a lightweight markup language that is widely used for creating formatted and structured documents. It was created by John Gruber in 2004 with the goal of providing a simple way to write web content that can be easily converted to HTML. Markdown is designed to be easy to read and write, while still allowing for the creation of well-formatted documents.
Basic Concepts of Document Creation in Markdown
Headings
In Markdown, headings are created by using the pound sign (#) followed by a space and the heading text. The number of pound signs determines the level of heading, with one pound sign (#) representing the highest level (h1) and six pound signs (######) representing the lowest level (h6).
Example:
“`
# This is a level 1 heading
## This is a level 2 heading
### This is a level 3 heading
“`
Text Formatting
Markdown allows for simple text formatting, such as making text bold or italic.
– To make text bold, surround it with double asterisks (**) or double underscores (__).
– To make text italic, surround it with single asterisks (*) or single underscores (_).
Example:
“`
This is **bold** text.
This is *italic* text.
“`
Lists
Markdown supports both ordered and unordered lists.
– To create an unordered list, use a hyphen (-), plus sign (+), or asterisk (*) followed by a space.
– To create an ordered list, use numbers followed by a period (.) and a space.
Example:
“`
– Apple
– Banana
– Orange
1. First item
2. Second item
3. Third item
“`
Links and Images
Markdown allows for the inclusion of links and images by using square brackets [] for the link text or image alt text, and parentheses () for the link URL or image source.
Example:
“`
This is a [link](https://example.com).
![Image](https://example.com/image.jpg)
“`
Markdown provides many more formatting options, including tables, code blocks, and horizontal rules. By using a simple and intuitive syntax, Markdown allows users to create well-structured documents without the need to write complex HTML tags.
Overall, Markdown is a powerful tool for creating structured documents, and its simplicity makes it a popular choice among writers, bloggers, and developers. With Markdown, you can focus on the content and let the formatting be taken care of seamlessly.
Reference Articles
Read also
[Google Chrome] The definitive solution for right-click translations that no longer come up.