• Stars
    star
    167
  • Rank 225,334 (Top 5 %)
  • Language
  • License
    MIT License
  • Created over 2 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A single place for all the markdown syntaxes I have learned so far.

Table of Contents

markdown-cheatsheet is a single place for all the markdown syntaxes I have learned so far. Sharing publicly so that you also know about them and use.

  1. Headings
  2. Code
  3. Unordered List of Items
  4. Ordered List of Items
  5. CheckBox Task List
  6. Code Block
  7. Strikethrough Text
  8. Blockquote Text
  9. Bold
  10. Italic
  11. Bold and Italic
  12. Link
  13. Image
  14. Linking an Image
  15. Emojis
  16. Table
  17. Table With Alignments
  18. Horizontal Line
  19. HTML
  20. Embed YouTube Video
  21. Mathematical Expressions
  22. DropDown
  23. Diagrams
  24. FootNote
  25. Comments

Many Thanks to all the Stargazers who has supported this project with stars()

Thanks to all stargazers

Headings

Syntax:

# H1 - Heading 1
## H2 - Heading 2
### H3 - Heading 3
#### H4 - Heading 4
##### H5 - Heading 5
###### H6 - Heading 6

Output:

H1 - Heading 1

H2 - Heading 2

H3 - Heading 3

H4 - Heading 4

H5 - Heading 5
H6 - Heading 6

Code

Syntax:

`This is Code`

Output:

This is Code

Unordered List of Items

Syntax:

- Milk
- Tea
- Beer

Output:

  • Milk
  • Tea
  • Beer

Syntax:

This is an alternate syntax to create unordered list items.

* JavaScript
* TypeScript
* ReactJs

Output:

  • JavaScript
  • TypeScript
  • ReactJs

Ordered List of Items

Syntax:

1. Eat
1. Walk
1. Sleep

Output:

  1. Eat
  2. Walk
  3. Sleep

CheckBox Task List

Syntax:

- [X] Code
- [ ] Review
- [ ] Commit

Output:

  • Code
  • Review
  • Commit

Code Block

Syntax:

```
This is a code block. You can create for code syntaxes like JavaScript, HTML, CSS, Bash, and many more.
```

Output:

This is a code block. You can create for code syntaxes like JavaScript, HTML, CSS, Bash, and many more.

In order to highlight the code, you can add language name at the start of the backticks as in the following examples.

Example 1:

```js
function print() {
 console.log('This is is a JavaScript Code Block');
}
```

Output:

function print() {
 console.log('This is is a JavaScript Code Block');
}

Example 2:

```bash
# This is bash
echo 1
```

Output:

# This is bash
echo 1

Strikethrough Text

Syntax:

~~Sharing is NOT about Caring.~~

Output:

Sharing is NOT about Caring.

Blockquote Text

Syntax:

> When I say something, I mean it. When I mean it, I do it. When I do, I may fail. When I fail, I start talking about it again!

Output:

When I say something, I mean it. When I mean it, I do it. When I do, I may fail. When I fail, I start talking about it again!

Bold

Syntax:

**DO NOT UNDERESTIMATE THE POWER OF A PROGRAMMER.**

Output:

DO NOT UNDERESTIMATE THE POWER OF A PROGRAMMER.

Italic

Syntax:

*It is Written in Italics*

Output:

It is Written in Italics

Bold and Italic

Syntax:

***You Can Combine Bold and Italics***

Output:

You Can Combine Bold and Italics

Link

Syntax:

Did you know I have [Website](https://tapasadhikary.com)?

Output:

Did you know I have Website?

Image

Syntax:

![alt text](image)

Output:

GreenRoots Blog

Linking an Image

Syntax:

[![alt text](image)](hyperlink)

Output:

GreenRoots Blog

Image Based on Theme

Syntax:

![alt text](image#gh-dark-mode-only)

or

![alt text](image#gh-light-mode-only)

Output (try changing themes!):

dark mode only image

light mode only image

Emojis

Syntax:

:mango: :lemon: :man: :car:

Output:

🥭 🍋 👨 🚗

Table

Syntax:

| Fruit | Emoji |
| ----------- | ----------- |
| Mango | :mango: |
| Lemon | :lemon: |

Output:

Fruit Emoji
Mango 🥭
Lemon 🍋

Table With Alignments

Syntax:

| Fruit(left)      | Emoji(center) | Taste(right)     |
| :---        |    :----:   |          ---: |
| Mango is the king of Fruits      | :mango:       | Sweet and I love it  |
| Lemon is good for health   | :lemon:        | Sour, mix it in the water     |

Output:

Fruit(left) Emoji(center) Taste(right)
Mango is the king of Fruits 🥭 Sweet and I love it
Lemon is good for health 🍋 Sour, mix it in the water

Horizontal Line

Syntax:

---

Output:


HTML

Syntax:

<p align="center">
 Yes, you can use allowed raw HTML in mark-down file.
 This is a paragraph aligned in the center.
</p>

Output:

Yes, you can use allowed raw HTML in mark-down file. This is a paragraph aligned in the center.

Heading The details are here.

Embed YouTube Video

Syntax:

[![Alt Text](Thumbnail Image)](YOUTUBE VIDEO LINK)

Output:

Forking a Repo

Mathematical Expressions

  1. Inline expressions:

    Syntax

    $<<mathematical expression>>$
    

    Replace <<mathematical expression>> with your expression.

    Example

    $\sqrt{3}+1$
    

    Output

    $\sqrt{3}+1$

  2. Block Expressions:

    Syntax

    $$<<mathematical expression>>$$
    

    Example

    $$\sqrt{3}+1$$
    

    Output

    $$\sqrt{3}+1$$

  3. Mixed Expressions:

    Syntax

    When $a \ne 0$, there are two solutions to $(ax^2 + bx + c = 0)$ and they are 
    
    $$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$
    

    Output

    When $a \ne 0$, there are two solutions to $(ax^2 + bx + c = 0)$ and they are

    $$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$

For more information on how to write mathematical expressions, visit this page.

DropDown

  1. DropDown with Open:
    Syntax
<details open>
<summary>Want to know more? </summary>
<br>
This is called a DropDown.
<br>Yes! This is possible using Markdown.
<br>You can hide some content from the user.
<br>They can view the detailed message only when they click.
</details>

Output

Want to know more?
This is called a DropDown.
Yes! This is possible using Markdown.
You can hide some content from the user.
They can view the detailed message only when they click.

Explanation
The details tags are used to indicate that we want a dropdown.
The keyword open in details tag is causing the dropdown to stay opened even before the user clicks on it, which messes up the fun!
It looks like a question and answer - this is not our purpose, we fix this in the below example.
Between the summary tags, we write the heading/content to be displayed.
After summary, we can include the detailed content.
However, when a user clicks on the arrow, the detailed content gets hidden; with another the click, the content is displayed again.

  1. DropDown without Open:
    Syntax
<details>
<summary>Want to know more? Click Here</summary>
<br>
This is called a DropDown.
<br>Yes! This is possible using Markdown.
<br>You can hide some content from the user.
<br>They can view the detailed message only when they click.
</details>

Output

Want to know more? Click Here
This is called a DropDown.
Yes! This is possible using Markdown.
You can hide some content from the user.
They can view the detailed message only when they click.

Explanation
The details tags are used to indicate that we want a dropdown.
This is what we require, the detailed content should be hidden initially. With a click, the information should be displayed.
Between the summary tags, we write the heading/content to be displayed inside or what we refer to as DROPDOWN TITLE.
After summary, we can include the detailed content, this will be shown only when the user clicks the dropdown title.

Diagrams

Syntax:

  • Use the mermaid syntax
  • Additional syntax: TD means Top Down, LR means Left Right, BT means Bottom Top, RL means Right Left

TD variant

    ```mermaid
        graph TD;
            A-->B;
            B-->C;
            C-->D;
            D-->E;
    ```

Output:

       graph TD;
           A-->B;
           B-->C;
           C-->D;
           D-->E;

LR variant

    ```mermaid
        graph LR;
            A-->B;
            B-->C;
            C-->D;
            D-->E;
    ```

Output:

       graph LR;
           A-->B;
           B-->C;
           C-->D;
           D-->E;

BT variant

    ```mermaid
        graph BT;
            A-->B;
            B-->C;
            C-->D;
            D-->E;
    ```

Output:

       graph BT;
           A-->B;
           B-->C;
           C-->D;
           D-->E;

RL variant

    ```mermaid
        graph RL;
            A-->B;
            B-->C;
            C-->D;
            D-->E;
    ```

Output:

       graph RL;
           A-->B;
           B-->C;
           C-->D;
           D-->E;

FootNote

Explanation:
Footnotes allow you to add notes and references without cluttering the body of the document.
When you create a footnote, a superscript number with a link appears where you added the footnote reference.
Readers can click the link to jump to the content of the footnote at the bottom of the page.

Syntax:

Here's a simple footnote,[^1] and here's a longer one.[^bignote]

[^1]: This is the first footnote.

[^bignote]: Here's one with multiple paragraphs and code.

Output:

Here's a simple footnote,1 and here's a longer one.2

Comments

Explanation:
Comments are text notes added to a program or a document to provide explanatory information.
You can hide content from the rendered Markdown by placing the content in a comment.

Syntax

This is Line Number 1. 
<!---This is Line Number 2 and would not be rendered as this is a comment. --->
This is Line Number 3.

Output

This is Line Number 1.

This is Line Number 3.

Footnotes

  1. This is the first footnote.

  2. Here's one with multiple paragraphs and code.

More Repositories

1

html-tips-tricks

My Favorite HTML5 Tips and Tricks
HTML
309
star
2

webapis-playground

The Web APIs Playground is a project to showcase the JavaScript Web APIs with examples and demonstrations. Client-side JavaScript APIs are here to help with providing wrapper functions for many low-level tasks.
TypeScript
290
star
3

js-tips-tricks

List of JavaScript tips and tricks I am learning everyday!
JavaScript
190
star
4

promise-interview-ready

Learn JavaScript Promises in a new way. This repository contains all the source code and examples that make you ready with promises, especially for your interviews 😉.
JavaScript
178
star
5

theme-builder

The theming system helps you in building a theme of your choice and apply it to test live. Why wait? Just give it a try.
JavaScript
148
star
6

html-file-upload

Useful HTML file upload tips for web developers
HTML
145
star
7

notifyme

react-notification-timeline is a react based component helps in managing the notification in time-based manner.
JavaScript
126
star
8

fork-me

Yeah, right. FORK ME!!! Once you fork me, I help you learn forking.
Python
113
star
9

demolab

Demolab is my fantasy project created to understand the power of JAMstack using JavaScript(Reactjs), API(Netlify and Aws) and pre-built Markup(Gatsby).
JavaScript
82
star
10

promiviz

Visualize JavaScript Promises on the browser. Visualize the JavaScript Promise APIs and learn. It is a playground to learn about promises faster, ever!
JavaScript
80
star
11

add-copyright

This is a Script to Automate adding the Copyright text to one or more source files Recursively.
JavaScript
79
star
12

js-keyevents-demo

Get to know all about the key events just with a keystroke.
JavaScript
61
star
13

learn-css-animation

Learn CSS animation with fun. It is simple, easy to use, and fun to learn.
HTML
55
star
14

nodeX

A collection of examples from Node.js modules.
JavaScript
34
star
15

princess-finder

The `princess-finder` is a fun app to use a bit of machine learning in the browser. This app was built as part of the Hashnode's #christmashackathon.
JavaScript
34
star
16

covid-19

COVID-19 World is yet another Project to build a Dashboard like app to showcase the data related to the COVID-19(Corona Virus).
JavaScript
32
star
17

model-repo

A public repository contains the best practices about creating and maintaining repositories to gain maximum engagements, contributions, and acknowledgments (like stars, sponsors).
31
star
18

js-collections-map-set

Repository to have example code to demonstrate JavaScript Map and Set data structures.
JavaScript
31
star
19

shoes

Shoes is an online shoe store built using Gatsby and Strapi
JavaScript
29
star
20

react-add-table-dynamic-row

Adding a Table row dynamically using React Hook
JavaScript
28
star
21

testimonial

Jamstack app using Gatsby, Netlify, and FaunaDB.
JavaScript
26
star
22

youtube

You can find all source code mentioned in my YouTube videos right here. Not only that, you can even request a New Video from here. Just Give it a Try.
HTML
23
star
23

flicks

Flicks is a project to showcase the integration between Gatsbyjs and HarperDB. It provides a Gatsby-based user interface pulling data from the HarperDB. So you can assume it to be a library showing information about my favorite books!
JavaScript
23
star
24

imaginary

imaginary is an image gallery built using Gatsby and Cloudinary. Follow this project to know more.
JavaScript
19
star
25

js-handbook-examples

This repository contains the list of examples I have used in various handbooks on JavaScript.
JavaScript
17
star
26

quotes

A project to demonstrate the integration of SuperTokens's Passwrodless auth and Nextjs
JavaScript
16
star
27

shopnote

shopnote is a JAMstack application that helps in creating notes with shopping items. This application is built to showcase the JAMstack concept using Fauna, Netlify Serverless Functions and GatsbyJS.
JavaScript
16
star
28

catstore

Happy Paws Cat store is a Jamstack application to showcase the integration between Netlify Functions, Stripe, and Gatsby. It does a test checkout and the app is only for learning/demo purposes.
CSS
15
star
29

js-array-sorting

Various examples of JavaScript Array Sorting with tips.
JavaScript
15
star
30

js-mtprog

Sample code for Metaprogramming in JavaScript using Proxy, Reflection, Symbol, etc.
JavaScript
14
star
31

i18n-js-npm

i18n-web is a simple tool helps in externalizing the strings in a JavaScript based Application such that, Internationalization(i18n) can be achieved easily. It has the additional capability of parameterizing the strings to get the dynamic content Internationalized.
JavaScript
14
star
32

aqi-react

aqi-react is a project created to know the Air Quality Index of various parts of the world. How about a ⭐️?
JavaScript
13
star
33

array-fill-color-cards

This project demonstrates the fill() method of JavaScript Array using color cards.
JavaScript
12
star
34

react-package-publisher

This is a project to help developers build, test and publish a react component to Node Package Magaer(npm).
JavaScript
11
star
35

flicks-admin

A project to showcase HarperDB Custom function with Recharts to create a simple dashboard.
JavaScript
10
star
36

next-starter-revue-tailwind

Create a Newsletter APP with Twitter Revue, Next.js Serverless APIs, and Tailwind CSS. The Best way to get Newsletter on your website and portfolio.
JavaScript
9
star
37

gatsby-source-harperdb

It is a Gatsbyjs plugin that allows you to use the HarperDB as the data source so that a Gatsby project can pull the data at the build time. It will help any Gatsbyjs app to create a prebuilt markup with the data from HarperDB.
JavaScript
8
star
38

atapas

This is my GitHib profile page. Feel free to check out the readme file, copy, fork, and use. You can visit it to know about the side-projects as well.
7
star
39

js-promise-example

This repository contains the example of JavaScript Promises and Operations
JavaScript
7
star
40

js-array-at-method

Project to demonstrate the usages of the JavaScript Array at(index) method.
CSS
7
star
41

react-clip-path

react-clip-path is a simple React-based package to create shapes declaratively using CSS clip-path property.
JavaScript
6
star
42

react-dynamic-import-component

This project was bootstrapped with Create React App. This is a Project to showcase how the dynamic imports, lazy and suspense works.
JavaScript
6
star
43

hobbyland

Hobby Land is a learn and do project built using tye super cool svelte. You can add and track your hobbies, edit them, and also remove them when not needed.
Svelte
6
star
44

nextjs-analytics

In this repo, we have implemented an integration with Next.JS and Quickmetrics. This is to do analytics using the Metrics created by Next.js Web Vitals.
JavaScript
6
star
45

todo-jexia-react

This is a Proof of Concept Project to use Jexia along with a React App. What Better than Creating a TODO app? How about a ⭐️?
JavaScript
5
star
46

tracker-beacon-api

Learn the Web Beacon API with examples. Try out this project to explore with hands-on.
JavaScript
5
star
47

colorpicker-pwa

A project to demonstrate PWA strategies
JavaScript
5
star
48

uc-react-gallery

A project to build interactive photo gallery using ReactJS and Uploadcare APIs. Learn image processing, face detection, object recognition, and many more.
JavaScript
5
star
49

react-redux-example

Project for explaining react-redux by example. How about a ⭐️?
JavaScript
5
star
50

horoscope-app

A new Flutter project to build an app that has basic layout, routing and server communication over REST APIs. What would be better than knowing your Horoscope in real! How about a ⭐️?
Dart
4
star
51

anchors

An app to demonstrate the HTML anchor tags and their properties.
HTML
4
star
52

jamstack-subscription-form

Let's build a subscription form with the Jamstack concept using Netlify Forms, Functions, and Fauna data-store.
HTML
4
star
53

webpack-react-starter

Project to get started with a Webpack supported development environment. React is added as a dependency already. How about a ⭐️?
JavaScript
3
star
54

font-loader

font-loader is a simple react app created using the Create React App to show case how fonts can be loaded.
JavaScript
3
star
55

js-module

JavaScript
3
star
56

theme-builder-tailwind

Create a Theme Builder using tailwindCSS
JavaScript
3
star
57

cypress-react-e-2-e

The cypress-react-e-2-e is an educational project aims to teach using Cypress end-to-end test with a ReactJS application.
JavaScript
3
star
58

ml-greenroots

ml-greenroots is a Pet project to run ML in the Browser using various libraries and frameworks available. How about a ⭐️?
JavaScript
3
star
59

test-rest-app

This is a sample sails js app which has integration with Heroku. See the website for more information.
JavaScript
3
star
60

thought-horoscope

This is a Horoscope Telling Tool Developed using NodeJS CLI(Command Line Interface) technologies. How about a ⭐️?
JavaScript
2
star
61

json-faker-server

This project showcases how to create an API server in few minutes which can provide you all that you need for building the User Interface Prototype.
JavaScript
2
star
62

nanny-plum

A Fun Project to Call Google Cloud API(Text to Speech) from Flutter. Do you know what? I have been using it at my home for a while now! How about a ⭐️?
Dart
2
star
63

nextjs-bugfender

This is a project to demonstrate Nextjs and Bugfender integration
JavaScript
2
star
64

ml-browser

This is a Project to try Machine Learning on Browser. How about a ⭐️?
HTML
1
star
65

tapasadhikary.com

This is the OLD public site for the domain tapasadhikary.com
JavaScript
1
star
66

greet-me-debugging

HTML
1
star
67

testcap

Code Testing using Jest and some examples. How about a ⭐️?
JavaScript
1
star
68

ionic-play

A sample project to demonstrate ionic slides with zoom capability. Each of the slide in the sildes got an image and some texts as sample data.
TypeScript
1
star
69

ng-auto-complete

UI Component built using Angular 5 to perform Autocomplete(Single and Multi-Select))
TypeScript
1
star
70

svelte-think

New to Svelte? Here are some examples to get started. How about a ⭐️?
HTML
1
star
71

ng-starter

A Quick start project for angular 1.x development
CSS
1
star
72

bugfender-flutter

A flutter app to integrate bugfender services. It logs all the app activities to the bugfender logs on the cloud for further assessment.
Dart
1
star
73

awesome-rest-service

This is the back-end app for the 'Full-Stack-Reborn' Project. It is hosted on Heroku. How about a ⭐️?
JavaScript
1
star
74

gatsby-all-in-one

This project has logical branches created from the tutorial https://www.gatsbyjs.org/tutorial/
JavaScript
1
star
75

code-in-react-19

A starter repository to code in React 19
JavaScript
1
star