Skip to content

ijborda/markdown-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown Tutorial

This is a tutorial on how to make markdown files. No prior knowledge in programming is required.

Table of Contents

What is a markdown file?

  • It has an extension of .md.
  • A way to write content for the web.
  • Has wide range of compatibility. Unlike cumbersome word processing applications, text written in Markdown can be easily shared between computers, mobile phones, and people.
  • It’s quickly becoming the writing standard for academics, scientists, writers, and many more.
  • Markdown focuses on the content rather than the style. It doesn’t do anything fancy like change the font size, color, or type. All we have control over is the structure of the text - creating headers, organizing lists, giving emphasis etc.
  • Source: https://www.markdowntutorial.com/
  • Personal reasons why I prefer markdown files:
    • It is lightweight.
    • No annoying page breaks.
    • Has cleaner look.
    • Makes the structure more obvious.
    • No worries in spacing.

Prerequisite

  1. Install Visual Studio Code.
  2. Install and configure VS Code extension prettier.
    1. Click the extension toolbar on the left. Search for prettier and install it. Search for Prettier
    2. Click the settings toolbar on the left. Search for Format on Save. Check format on save. Settings Search for Format on Save Enable Format on Save
    3. Be sure that prettier is enabled. Restart of VS code may be needed. Prettier Installed
  3. Create a github account.
  4. Download github desktop.

Italic

_italic_
Example Italic sample

Bold

**bold**
Example Bold sample

Headers

# Header 1
## Header 2
### Header 3
#### Header 4
##### Header 5
###### Header 6
Example Headings sample

Links

[text](url)
Example Link sample

Links (Relative)

[text](directory)
Example Link Relative sample

Links (Section)

[text](#section-heading)

Note: Remove special characters

Example Link Section sample

Images

![Alt-text](img-path-or-url)

You may use and download this image.

Example Link Image sample

Note: .gif also works

Blockquotes

> your-quote
Example Blockquote sample

Unordered List

- Level 1
  - Level 2
    - Level 3
      - Level 4
- Level 1
- Level 1
* Level 1
  * Level 2
    * Level 3
      * SLevel4
* Level 1
* Level 1
Example List Unordered sample

Ordered List

1. Level 1
   1. Level 2
      1. Level 3
         1. Level 4
1. Level 2
1. Level 4
Example List Ordered sample

Task List

- [x] List-1
- [ ] List-2
- [ ] List-3
Example Task List sample

Paragraph (soft break)

Do I contradict myself?**
Very well then I contradict myself**
(I am large, I contain multitudes.)

Note: Each * represents a space in keyboard

Example Paragraph Soft Break sample

Subscript

<sub>subscript</sub>
Example Subscript sample

Superscript

<sup>subscript</sup>
Example Superscript sample

Code (inline)

`inline-code`

Note: It uses a symbol called back quote (`). You can see the back quote symbol in your keyboard here.

Example Code Inline sample

Code (block)

```
Block code
```
Example Code Block sample

Math equation (inline)

$ inline-equation $

Use: Equation to Latex Use: Latex Math Cheatsheet - 1 Use: Latex Math Cheatsheet - 2

Example Equation Inline sample

Math equation (block)

$$ block-equation $$

Use: Equation to Latex Use: Latex Math Cheatsheet - 1 Use: Latex Math Cheatsheet - 2

Example Equation Block sample

Tables

| Heading1 | Heading2 | Heading2 |
| -------- | -------- | -------- |
| Data     | Data     | Data     |
| Data     | Data     | Data     |
| Data     | Data     | Data     |
Example Table sample

Tips

  1. Do not use spaces in folder names. Also, use only small caps.

  2. Consider compressing your images.

  3. Example of tutorials made using markdown files:

  4. Further reading:

Exercises

Do: Exercises

Convert to website

  1. In Github, go to Settings > Pages. Enable github pages by choosing the branch main, which will be the basis in making the website.
  2. Choose a theme.
  3. Click save then wait for the build to finish.
  4. Make math equation work by adding Mathjax Link in the head.

About

Tutorial in getting started with markdown files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published