Markdown Toolbox Logo Markdown Toolbox
Home
Blog

Algorithms to Live By Algorithms to Live By: The Computer Science of Human Decisions by Brian Christian and Tom Griffiths

This is a nonfiction book that made me stop and think several times. I really enjoyed finding ways that computer science could be applied to normal life and decision making. Especially useful for the technically inclined, but useful for many. I recommend checking it out.

Affiliate Link - As an Amazon Associate I earn from qualifying purchases.

Creating New Lines Inside Tables in Markdown

Thursday, March 7, 2024

Short version

To create a new line within a table cell, you can use the HTML `<br>` tag.

Here's an example within a table:

Header1Header2
Row1 Cell1
New line
Row1 Cell2
Row2 Cell1Row2 Cell2
New line

Long version

Introduction

Markdown tables are great for presenting structured information concisely. Sometimes, you might need to add more detail in a single cell without creating additional columns or rows.

Adding Line Breaks

Markdown itself does not support line breaks within table cells. But, you can use HTML tags like <br> directly in your Markdown to achieve this.

Step-By-Step Guide

  1. Define your table structure.
  2. Where you need a new line within a cell, insert the <br> tag.

This method allows you to keep your table clean and readable while adding necessary details.

Conclusion

Using HTML tags within Markdown is a powerful way to enhance your text formatting capabilities, like adding new lines inside table cells without altering the table's layout.