RoboDOJO

Tables

Tables are perfect for organizing data, comparisons, and structured information in Markdown.

Basic Table Syntax

Simple Table

MARKDOWN
| Header 1 | Header 2 | Header 3 |
| -------- | -------- | -------- |
| Row 1    | Data     | More     |
| Row 2    | Info     | Content  |

Result:

Header 1Header 2Header 3
Row 1DataMore
Row 2InfoContent

Column Alignment

Control text alignment with colons:

MARKDOWN
| Left         |     Center     |         Right |
| :----------- | :------------: | ------------: |
| Left aligned | Center aligned | Right aligned |
| More text    |  More content  |  Numbers: 123 |

Result:

LeftCenterRight
Left alignedCenter alignedRight aligned
More textMore contentNumbers: 123

Advanced Table Features

Tables with Code

MARKDOWN
| Method | Syntax       | Example         |
| ------ | ------------ | --------------- |
| Bold   | `**text**`   | **bold**        |
| Italic | `*text*`     | _italic_        |
| Code   | `` `code` `` | `console.log()` |

Result:

MethodSyntaxExample
Bold**text**bold
Italic*text*italic
Code`code`console.log()

Tables with Links

MARKDOWN
| Tool    | Website                                                | Description        |
| ------- | ------------------------------------------------------ | ------------------ |
| GitHub  | [github.com](https://github.com)                       | Version control    |
| VS Code | [code.visualstudio.com](https://code.visualstudio.com) | Code editor        |
| Node.js | [nodejs.org](https://nodejs.org)                       | JavaScript runtime |

Result:

ToolWebsiteDescription
GitHubgithub.comVersion control
VS Codecode.visualstudio.comCode editor
Node.jsnodejs.orgJavaScript runtime

Practical Examples

API Documentation

MARKDOWN
| Endpoint      | Method | Description    | Parameters            |
| ------------- | ------ | -------------- | --------------------- |
| `/users`      | GET    | List all users | `limit`, `offset`     |
| `/users`      | POST   | Create user    | `name`, `email`       |
| `/users/{id}` | GET    | Get user by ID | `id` (required)       |
| `/users/{id}` | PUT    | Update user    | `id`, `name`, `email` |
| `/users/{id}` | DELETE | Delete user    | `id` (required)       |

Feature Comparison

MARKDOWN
| Feature        | Free Plan | Pro Plan  | Enterprise |
| -------------- | :-------: | :-------: | :--------: |
| Users          |     5     |    50     | Unlimited  |
| Storage        |    1GB    |   100GB   |    1TB     |
| Support        |   Email   | Priority  | 24/7 Phone |
| API Access     ||||
| Custom Domains ||||
| Analytics      |   Basic   | Advanced  |   Custom   |
| Price          | $0/month  | $29/month | Contact Us |

Project Status

MARKDOWN
| Task                | Assignee | Status         | Due Date   | Priority |
| ------------------- | -------- | -------------- | ---------- | -------- |
| User Authentication | @john    | ✅ Complete    | 2024-01-15 | High     |
| Dashboard UI        | @sarah   | 🔄 In Progress | 2024-01-20 | Medium   |
| API Integration     | @mike    | 📋 Planned     | 2024-01-25 | High     |
| Testing             | @team    | ⏳ Pending     | 2024-01-30 | Low      |

Best Practices

1. Keep Headers Clear

Use descriptive column headers:

Good:

MARKDOWN
| Product Name | Price (USD) | Availability | Rating |

Vague:

MARKDOWN
| Name | Cost | Stock | Stars |

2. Consistent Data Format

Format similar data consistently:

Consistent:

MARKDOWN
| Item     | Price   | Discount |
| -------- | ------- | -------- |
| Laptop   | $999.00 | 10%      |
| Mouse    | $29.99  | 5%       |
| Keyboard | $79.50  | 15%      |

3. Use Alignment Appropriately

  • Left: Text content
  • Center: Short labels, status
  • Right: Numbers, prices
MARKDOWN
| Product |  Status   |   Price |
| :------ | :-------: | ------: |
| Laptop  | Available | $999.00 |
| Mouse   | Sold Out  |  $29.99 |

Advanced Formatting

Multi-line Content

Use <br /> for line breaks in cells:

MARKDOWN
| Feature        | Description                                            |
| -------------- | ------------------------------------------------------ |
| Authentication | Secure login
Password reset
2FA support | | Dashboard | Real-time data
Custom widgets
Export options |

Empty Cells

Leave cells empty when appropriate:

MARKDOWN
| Version | Feature          | Bug Fixes | Breaking Changes |
| ------- | ---------------- | --------- | ---------------- |
| 1.0.0   | Initial release  |           ||
| 1.1.0   | New dashboard    | 5 fixes   |                  |
| 2.0.0   | Complete rewrite | 12 fixes  ||

Common Mistakes

1. Inconsistent Column Count

Wrong:

MARKDOWN
| A   | B   | C   |
| --- | --- | --- | --- |
| 1   | 2   |
| 3   | 4   | 5   | 6   |

Correct:

MARKDOWN
| A   | B   | C   |
| --- | --- | --- |
| 1   | 2   | 3   |
| 4   | 5   | 6   |

2. Missing Alignment Row

Missing:

MARKDOWN
| Header 1 | Header 2 |
| Row 1 | Data |

Complete:

MARKDOWN
| Header 1 | Header 2 |
| -------- | -------- |
| Row 1    | Data     |

3. Pipe Character Issues

Unescaped:

MARKDOWN
| Code | Description |
| ---- | ----------- | -------------- |
| a    | b           | Pipe character |

Escaped:

MARKDOWN
| Code | Description    |
| ---- | -------------- |
| a\|b | Pipe character |

Tables make your content organized and scannable – perfect for comparisons, specifications, and structured data!