Master in making a wonderful README file for your repository.
- Markdown is a way to style text on the web. You control the display of the document; formatting words as bold or italic, adding images, and creating lists are just a few of the things we can do with Markdown.
- Files with the
.md
or.markdown
extension.
Markdown is commonly used in many discussion portals (like GH Discusions, StackOverFlow) and also used in GitHub Repository's
README.md
file.It is a light-weight syntax and helps to render many things (like images, links, headers, paragraphs, etc.). README.md is a special file which tells about your respository
Headover to your repository.
Go to add new file tab and click create new file.
Give your file name as
README.md
and whoha, you have made your first README.md file under your repository.
- Before Creating the repository:
- After creating the repository:
Here’s an overview of Markdown syntax that you can use.
Syntax
# For h1
## For h2
## For h3
### For h4
Output
Syntax
![Image of GitHub Logo](https://upload.wikimedia.org/wikipedia/commons/9/91/Octicons-mark-github.svg)
^
--Image Name
^^^
------------------------- URL of the image
Output
Syntax
Sometimes you want numbered lists:
1. One
2. Two
3. Three
Sometimes you want bullet points:
* Start a line with a star
* Profit!
Alternatively,
- Dashes work just as well
- And if you have sub points, put two spaces before the dash or star:
- Like this
- And this
Output
Sometimes you want numbered lists:
- One
- Two
- Three
Sometimes you want bullet points:
- Start a line with a star
- Profit!
Alternatively,
- Dashes work just as well
- And if you have sub points, put two spaces before the dash or star:
- Like this
- And this
Syntax
*This text will be italic*
_This will also be italic_
**This text will be bold**
__This will also be bold__
_You **can** combine them_
Output
This text will be italic This will also be italic
This text will be bold This will also be bold
You can combine them
Syntax
http://github.com - automatic!
[GitHub](http://github.com)
Output
http://github.com - automatic!
Syntax
First Header | Second Header
------------ | -------------
Content from cell 1 | Content from cell 2
Content in the first column | Content in the second column
Output
First Header | Second Header |
---|---|
Content from cell 1 | Content from cell 2 |
Content in the first column | Content in the second column |
These are the some basics of Markdown. I will be adding more tricks soon. Make sure to give a ⭐ to this repository if you like this.