Skip to main content

Command Palette

Search for a command to run...

Markdown Cheat Sheet

Published
4 min read
Markdown Cheat Sheet
I

Hi there! Indratej Reddy here, and I am a developer. How did I begin my programming journey? When I was a youngster, I used to wonder how computers works. My curiosity about the computer world bloomed it in to a passion for me. My father bought me a computer when I was in seventh grade, and that is where my coding adventure began; I fell in love with programming.

I began my coding career with HTML and eventually moved on to C, C++, Java, R, Python, and JS. I've received accolades and certifications from organizations like "Data Science and Big Data Analytics" powered by DELL EMC and "ROBOTICS COMPETITION powered by IIT MADRAS." I've also taken part in numerous workshops on cutting-edge technologies like blockchain, artificial intelligence, deep learning, etc. I enjoy public speaking and have hosted several coding workshops throughout my undergraduate years. I'm also a YouTuber who values educating others, as well as a technical author that publishes articles about current technology and programming. I enjoy meeting new people, collaborating with them, and being inspired by them. As a developer, I constantly want to use my knowledge and abilities in real-world projects, which may be accomplished with greater industry experience. If you are seeking for a developer with enthusiasm and have greater prospects. Please feel free to contact me via LinkedIn or email.

Cheat Sheet for Markdown

Daring Fireball's John Gruber created Markdown, a fantastically easy technique to writing web pages. You go on with your writing (without any complicated programming), and Markdown handles the production of clear, web standards compliant HTML.

The Daring Fireball website contains complete Markdown guidance, but the most commonly used samples are introduced here to get you started.

Section Titles

When constructing a web page, you may set several levels of headers. Heading 1 is the most essential heading (which appears just once on each page – at the top). Markdown allows you to construct a level 1 heading by entering a single '#' character at the beginning of a line. This is how the header at the top of this page was defined:

Example:
Input:

# Markdown Cheat Sheet

Output:

Markdown Cheat Sheet

Simply add extra '#' characters to create supplementary headers, as illustrated below. For different title sizes, you could use one '#' all the way up to '######' six.

Example:
Input:

# h1
## h2
### h3
#### h4
##### h5
###### h6

Output:

h1

h2

h3

h4

h5
h6

Paragraphs

It is easy to write paragraphs. To separate them, insert a blank line. As illustrated below, you can add as many lines as you like between each paragraph.

Example:
Input:

This is first paragraph.
This is second paragraph.

This is third paragraph.


This is 4th paragraph separated by 4 lines after third paragraph.

Output:

This is first paragraph.

This is second paragraph separated by single line after first paragraph.

This is third paragraph separated by 2 lines after second paragraph.

This is 4th paragraph separated by 4 lines after third paragraph.

Bold and Italics

Example:
Input:

It's **very** easy to do **bold** and *italics*

Output:
It's very easy to do bold and italics

You can also use underscores if you prefer: example:
Input:

It's __very__ easy to do __bold__ and _italics_

Output:
It's very easy to do bold and italics

Simple links can be created by enclosing the link text in square brackets and the URL in round brackets: example:
Input:

[TechLifeJournal](http://www.techlifejournal.com)

Output:
TechLifeJournal

You can set a link title to provide your readers with additional information about the link they are about to follow:

example:
Input:

[TechLifeJournal](http://www.techlifejournal.com 'Indratej's site)

Search engines use titles, which typically appear as a tooltip when you hover over the link, to determine the topic of a page

Lists

Bullet Lists:

Start each line with hyphen (-) or an asterisk (), followed by a space. List items can be nested.
example:
Input:*

Bullet list:
- Food
  * Fruits
    * Oranges
    - Apples

Output:
Bullet list:

  • Food
    • Fruits
      • Oranges
      • Apples

Numbered Lists:

Start each line with number and a period, then a space.
example:
Input:

Numbered list:
1. One
2. Two
3. Three

Output:

  1. One
  2. Two
  3. Three

Quotes

In Html, if you need to reference a paragraph from someone else's work, you should correctly credit it to them by using HTML's <blockquote/> element. By inserting a single ">"character at the beginning of the line, you could create that by using Markdown.
example:
Input:

This is 1st paragraph.

> This is a 2nd paragraph but with blockquote.

>

> This is the 3rd paragraph but with blockquote.

Output:
This is 1st paragraph.

This is a 2nd paragraph but with blockquote.

>

This is the 3rd paragraph but with blockquote.

Images

If you want to insert images, this is how you do it:

![India Jaipur by hitesh](https://www.pexels.com/photo/amer-fort-india-jaipur-574337/)

pexels-hitesh-choudhary-3532551.jpg

Separator

example:
Input:

A horizontal line looks like this:

---
This is text.

Output:
A horizontal line looks like this:


This is text.

Code

example:
input:

image.png Output:
If you have inline code blocks, you can wrap them in backticks:
Example: var Indra = true.

If you've got a longer block of code, you can use ```:

if (HiteshisAwesome){
  return true
}

Formulas

example:
input:

You can use $$\LaTeX$$ to typeset formulas. A formula can be displayed inline, e.g. $$e=mc^2$$, or as a block:
$$\int_\Omega \nabla u \cdot \nabla v~dx = \int_\Omega fv~dx$$
Also check out this [LaTeX introduction](https://en.wikibooks.org/wiki/LaTeX/Mathematics).

Output:
You can use $$\LaTeX$$ to typeset formulas. A formula can be displayed inline, e.g. $$e=mc^2$$, or as a block: $$\int\Omega \nabla u \cdot \nabla v~dx = \int\Omega fv~dx$$ Also check out this LaTeX introduction.

Advanced

More advance elements can be found here:kramdown syntax