Skip to content

d3vdebug/markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Typing SVG

License: MIT PRs Welcome GitHub stars GitHub forks

A clean, complete guide for anyone writing better README files.

What is Markdown?

Markdown is a lightweight markup language that lets you format text using simple symbols. It’s widely used in GitHub READMEs, documentation, wikis, blogs, and notes.


Headings

Headings help structure your README into clear, readable sections. Simply it makes the document easy to scan.

This is a Heading

# This is a Heading

This is a Heading

## This is a Heading

This is a Heading

### This is a Heading

Text Formatting

Formatting helps you highlight important info, emphasize details, or organize explanations. It makes your README clearer, more readable, and more professional.

Bold Text

**Bold Text** or __Bold Text__

Italic Text

*Italic Text* or _Italic Text_

Bold + Italic

***Bold + Italic***

Strikethrough

`~~Strikethrough~~` or `~Strikethrough~`

Underline

<ins>Underline<ins>

Here's is a subscript

<sub>subscript<sub>

Here's is a superscript

<sup>superscript<sup>

inline code

`inline code`

Lists

Lists help you present information cleanly and quickly, making complex steps or features easy to digest.

Unordered List

  • Item 1
  • Item 2
- Item 1
- Item 2

Ordered List

  1. Item 1
  2. Item 2
1. Item 1
2. Item 2

Nested Lists

  • Item 1
    • Sub Item 1
      • Sub item a
- Item 1
  - Sub Item 1
    - Sub item a

Task List

  • Completed task
  • Pending task
- [x] Completed task
- [ ] Pending task

Code Blocks

Code blocks make your README developer‑friendly, giving users clean, formatted examples they can copy and run.

Inline Code

Use npm install to install packages.

`npm install`

Code Block

print("Hello World")
```python
print("Hello World")
```

Syntax highlighting available for Python, JavaScript, Java, Bash, JSON, YAML etc.

```<syntax>
<code>
```

Mermaid Diagrams

GitHub supports Mermaid for diagrams. Very useful for architecture diagrams, flowcharts, and explaining project structure: essential for technical documentation.

flowchart TD
    A --> B
Loading

Syntax:

```mermaid
flowchart TD
    A --> B
```

Tables

Tables allow you to show structured information such as configurations, comparisons, or fields. It turns messy text into a clean, organized layout, especially useful for feature lists, API data, and documentation.

Name Role Level
John Developer Senior
Bob Tester Junior
| Name   | Role      | Level  |
|--------|-----------|--------|
| John   | Developer | Senior |
| Bob    | Tester    | Junior |

or

|Name|Role|Level|
|-|-|-|
|John|Developer|Senior|
|Bob|Tester|Junior|

We can also align text to the left, right, or center of a column by including colons ':' to the left, right, or on both sides of the hyphens within the header row.

Left Aligned Centered Right Aligned
name1 role1 level1
name2 role2 level2
|Left Aligned| Centered |Right Aligned|
|:---        |   :---:  |         ---:|
| name1      |   role1  |       level1|
| name2      |   role2  |       level2|

Blockquotes

Used for notes, warnings, tips, or important messages.

This is a quoted line.

Nested quote

> This is a quoted line.
>> Nested quote

Horizontal Line


---

Links

Links lets us connect users to installation guides, docs, external pages, or related repositories.

GitHub

Syntax:

[GitHub](https://github.com)

Images

Images help make your README visually appealing, making your README more engaging and easier to understand.

Syntax:

![Alt text](image_url)

cat

![cat](https://github.com/user-attachments/assets/ba594416-cd49-4231-837b-fc4b742b876f)?target=https://github.com

Alerts

Alerts are use to emphasize critical information. On GitHub, they are displayed with distinctive colors and icons to indicate the significance of the content.

NOTE

Note

Useful information that users should know, even when skimming content.

> [!NOTE]
> Useful information that users should know, even when skimming content.

Tip

Helpful advice for doing things better or more easily.

> [!TIP]
> Helpful advice for doing things better or more easily.

Important

Key information users need to know to achieve their goal.

> [!IMPORTANT]
> Key information users need to know to achieve their goal.

Warning

Urgent info that needs immediate user attention to avoid problems.

> [!WARNING]
> Urgent info that needs immediate user attention to avoid problems.

Caution

Advises about risks or negative outcomes of certain actions.

> [!CAUTION]
> Advises about risks or negative outcomes of certain actions.

HTML in Markdown

Markdown is powerful, but it has limits. GitHub supports HTML inside Markdown, letting you do layout tricks that plain Markdown cannot achieve. Below is the full detailed explanation of how HTML can enhance Markdown.

HTML Headings

Markdown headings are good, but HTML headings gives more control. Useful when you want alignment or mixed layout at the top.

Heading 1

Heading 2

Heading 3

<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>

Left Aligned

Centered

Right Aligned

<h2 align="left">Left Aligned</h1>
<h2 align="center">Centered</h2>
<h2 align="right">Right Aligned</h3>

Paragraphs & Line Breaks

Markdown sometimes collapses line breaks. HTML fixes that.

Paragraph

This is a paragraph with controlled spacing.

<p>This is a paragraph with controlled spacing.</p>

Line Break

Line 1
Line 2

Line 1 <br>
Line 2

Comments

Comments are notes that won't render on the markdown, useful in add info without showing them publicly.

<!-- This is a Comment -->

<!--
This is
also a
Comment
-->

Alignment and Centered Sections

We can tweak the alignment of elements using the 'align' attribute on some tags. It is very useful to get a clean professional look for README's top section.

Logo

Project Name

A short one‑line description of what your project does.

<div align="center">
  <img src="assets/logo.png" alt="Logo" width="120" />
  <h1>Project Name</h1>
  <p>A short one‑line description of what your project does.</p>
</div>

Links

Using <a> tag we can add links inside centered blocks, badge rows, or custom layouts where Markdown links get messy.

Example Site

<a href="https://example.com" title="Example">Example Site</a>

Lists

Markdown lists are usually enough, but HTML lists help when you’re mixing complex blocks or alignment. We use <ul> <li> for unordered lists, <ol> <li> for ordered lists.

  • list 1
  • list 2
<ul>
  <li>list 1</li>
  <li>list 2</li>
</ul>
  1. list 1
  2. list 2
<ol>
  <li>list 1</li>
  <li>list 2</li>
</ol>

Tables

HTML tables are more flexible than Markdown tables. These are great for side‑by‑side layouts and for content that breaks Markdown table formatting.

Column 1 Column 2
Data Data
Data Data
<table align='center'>
  <tr>
    <td>Column 1</td>
    <td>Column 2</td>
  </tr>
  <tr>
    <td>Data</td>
    <td>Data</td>
  </tr>
  <tr>
    <td>Data</td>
    <td>Data</td>
  </tr>
</table>

Collapsible sections

Within our README we can use <details> and summary> tag to create expandable sections. These collapsible sections are perfect for FAQ, advanced setup, more screenshots, or extended configuration without making the README huge.

Show advanced setup
  • Step 1: Do this
  • Step 2: Do that
<details>
  <summary>Show advanced setup</summary>
  - Step 1: Do this  
  - Step 2: Do that  
</details>

Anchors

Anchors helps navigation in long READMEs. GitHub supports TOC linking behavior as part of common README practice.

Table of Contents

Section1

Section2

[Section1](#section1)
[Section2](#section2)

Keyboard keys

We can use <kbd> to display keyboard keys nicely. It is useful for shortcuts or commands in guides.

Press Ctrl + C to Copy.
Press Ctrl + V to Paste.

Press <kbd>Ctrl</kbd> + <kbd>C</kbd> to Copy.
Press <kbd>Ctrl</kbd> + <kbd>V</kbd> to Paste.

Some Useful Tips

Tip

  • Start with a 1–2 line summary explaining what the project does and who it’s for.
  • Add a clear title + short tagline (people decide in 5 seconds).
  • Show a screenshot/GIF early (especially for UI tools, dashboards, web apps).
  • Include a “Features” section with 4–6 bullets (what makes it useful).
  • Add a “Tech Stack” section (helps recruiters + contributors instantly).
  • Provide quick install steps that work copy‑paste (no long paragraphs).
  • Add a minimal “Usage” example (command/API snippet + expected output).
  • Document configuration: env vars, keys, ports, config files (brief + clear).
  • Include a simple folder structure so readers understand the codebase fast.
  • Add a “Roadmap / TODO” (shows direction and ongoing development).
  • Mention prerequisites (versions, OS, tools) to reduce setup friction.
  • Link to important docs (CONTRIBUTING, LICENSE, SECURITY, wiki, demo).
  • Use consistent headings and formatting (makes it readable + professional).
  • Add “How to Contribute” (even 3 steps: fork → branch → PR).
  • End with “License + Contact” (makes the project feel complete and credible).

About

A clean, complete Markdown guide for anyone who want to write better README files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors