MARKDOWN

Dr. Ajay Kumar Koli (PhD) ⋅ SARA Institute of Data Science, India

Markdown


Markdown is a lightweight markup language for creating formatted text using a plain-text editor. Developed by John Gruber in 2004.

Source: https://en.wikipedia.org/wiki/Markdown

Text formatting


Markdown Syntax Output
normal
normal
*italics*
italics
**bold**
bold
***bold italics***
bold italics

Source: Quarto guide

Text formatting


Markdown Syntax Output
superscript^2^
superscript2
subscript~2~
subscript2
~~strike through~~
strike through
`verbatim code`
verbatim code

Source: Quarto guide

Headings


Markdown Syntax Output
# Header 1

Header 1

## Header 2

Header 2

### Header 3

Header 3

#### Header 4

Header 4

##### Header 5
Header 5
###### Header 6
Header 6

Insert links


Markdown syntax Output
<https://saraedu.netlify.app/>
https://saraedu.netlify.app/

Insert links


Markdown syntax Output
[SARA](https://saraedu.netlify.app/)
SARA

Add images

If image is saved in your computer,
![](add image path here)


Markdown Syntax Output
![](lotus.png)

Add images

If image is taken from the internet,
![](add image link here)


![](https://images.unsplash.com/photo-1627130595904-ebeeb6540a93?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D)

Unordered list


Markdown Syntax Output
* Item 1
* Item 2
* Item 3
  • Item 1
  • Item 2
  • Item 3

Unordered list: Sub-items


Markdown Syntax Output
* Main items
    + Sub-item 1
    + Sub-item 2
        - Sub-sub-item 1
  • Main items
    • Sub-item 1
    • Sub-item 2
      • Sub-sub-item 1

Ordered list


Markdown Syntax Output
1. Eggs
1. Tea
1. Fish
1. Milk
  1. Eggs
  2. Tea
  3. Fish
  4. Milk

List


Markdown Syntax Output
(@)  A list whose numbering

continues after

(@)  an interruption
  1. A list whose numbering

continues after

  1. an interruption

List


Markdown Syntax Output
::: {}
1. A list
:::

::: {}
1. Followed by another list
:::
  1. A list
  1. Followed by another list

Definition

term
: definition


Markdown Syntax Output
Power
: Power is power.
Power
Power is power.

Equations

Use $ delimiters for inline math.


Markdown Syntax Output
It is a great equation $E = mc^{2}$
It is a great equation E=mc2

Equations

Use $$ delimiters for display math.


Markdown Syntax Output
It is a great equation $$E = mc^{2}$$
It is a great equation E=mc2

Learn more about Latex math expressions

In-line coding

`{r} `

```{r}

age <- c(1, 2, 3, 4, 5)

```

Input: The mean age of the participants is `{r} mean(age)`.

Output: The mean age of the participants is 3.

Videos

You can include videos in documents using the
{{< video >}} short code.


Code

{{< video https://www.youtube.com/embed/wo9vZccmqwc >}}

Output

Raw Content

```{=html}

<iframe src="https://quarto.org/" width="500" height="400"></iframe>

```

Tables


Markdown Syntax

| Right | Left | Default | Center |
|------:|:-----|---------|:------:|
|   12  |  12  |    12   |    12  |
|  123  |  123 |   123   |   123  |
|    1  |    1 |     1   |     1  |

Output

Right Left Default Center
12 12 12 12
123 123 123 123
1 1 1 1
1 / 21
MARKDOWN Dr. Ajay Kumar Koli (PhD) ⋅ SARA Institute of Data Science, India

  1. Slides

  2. Tools

  3. Close
  • MARKDOWN
  • Markdown
  • Text formatting
  • Text formatting
  • Headings
  • Insert links
  • Insert links
  • Add images
  • Add images
  • Unordered list
  • Unordered list: Sub-items
  • Ordered list
  • List
  • List
  • Definition
  • Equations
  • Equations
  • In-line coding
  • Videos
  • Raw Content
  • Tables
  • f Fullscreen
  • s Speaker View
  • o Slide Overview
  • e PDF Export Mode
  • r Scroll View Mode
  • ? Keyboard Help