MARKDOWN

Dr. Ajay Kumar Koli, PhD | SARA Institute of Data Science, India

Markdown
Language

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
![](rose.jpg)

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

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

Videos

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


Code

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

Output

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

🤯 Your Turn

1. What is Quarto used for in RStudio?

  1. Playing games
  2. Creating visualizations only
  3. Writing documents that combine code and text
  4. Installing R packages

🤯 Your Turn

2. What is the default file extension for a Quarto file?

  1. .rmd
  2. .qmd
  3. .txt
  4. .csv

🤯 Your Turn

3. Which symbol is used to start a code chunk in Quarto?

  1. $$
  2. //
  3. ```{r}
  4. --code--

🤯 Your Turn

4. What does the “Render” button in RStudio do in a Quarto file?

  1. Deletes the file
  2. Saves the script as a PDF
  3. Converts the Quarto file into a formatted document (HTML, PDF, etc.)
  4. Compiles the R packages

🤯 Your Turn

5. Which of these formats can Quarto generate?

  1. Video files
  2. HTML, PDF, Word documents
  3. MP3 audio
  4. Executable files

🤩 Your Turn Answers

  1. Correct answer: C) Writing documents that combine code and text

  2. Correct answer: B) .qmd

  3. Correct answer: C) ```{r}

  4. Correct answer: C) Converts the Quarto file into a formatted document (HTML, PDF, etc.)

  5. Correct answer: B) HTML, PDF, Word documents

🤯 Your Turn

Create and render a basic Quarto HTML document with a personal introduction.

🤩 Your Turn Answer

1 / 25
MARKDOWN Dr. Ajay Kumar Koli, PhD | SARA Institute of Data Science, India

  1. Slides

  2. Tools

  3. Close
  • MARKDOWN
  • Markdown Language
  • Text formatting
  • Text formatting
  • Headings
  • Insert links
  • Insert links
  • Add images
  • Add images
  • Unordered list
  • Unordered list: Sub-items
  • Ordered list
  • List
  • Equations
  • Equations
  • Videos
  • Tables
  • 🤯 Your Turn
  • 🤯 Your Turn
  • 🤯 Your Turn
  • 🤯 Your Turn
  • 🤯 Your Turn
  • 🤩 Your Turn Answers
  • 🤯 Your Turn
  • 🤩 Your Turn Answer
  • f Fullscreen
  • s Speaker View
  • o Slide Overview
  • e PDF Export Mode
  • r Scroll View Mode
  • ? Keyboard Help