Markdown is a lightweight markup language with plain-text-formatting syntax, created in 2004 by John Gruber with Aaron Swartz. Markdown is often used to format README files, write messages in online discussion forums, and create rich text using a plain text editor.
The hashtag signifies headers, #. The heading level is directly connected to the number of hashtags. H1 uses one, H2 two, etc. Here are H1, H2, H3, and H6 headers.
Emphasis text with italics, bold face, and strikethrough.
To italicize, wrap the text in asterisks or underscores, i.e., _italics_. In particular
This word or group of words is italicized by the asterisk. This will also be italic
Use double asterisk or underscores, i.e., **bold** or __bold__. Look at the code and you will see this is bold, as is this.
It is also possible to combine italics and boldface.
Double tilde (~~strike this~~) is used to strike through text. For example, Is our children learning?
Bullet lists use the asterisk to denote list items. Indentation creates subitems. In particular,
* Item 1
* Item 2
* Item 2a
* Item 2b
produces the list:
- Item 1
- Item 2
- Item 2a
- Item 2b
Ordered lists (and sublists) use digits (1,2,3,...) and indentation. The following code produces the ordered list.
The code,
1. Item 1
1. Item 2
1. Item 3
1. Item 3a
1. Item 3b
yields the ordered list:
- Item 1
- Item 2
- Item 3
- Item 3a
- Item 3b
- [x] Eat
- [ ] Study
- [ ] Sleep
renders as:
- Eat
- Study
- Sleep
Images are displayed starting with the exclamation point followed by square brackets containing the alt text and path to the image in parentheses, i.e., .
Square brackets enclose the text to be hyperlinked with the URL following in parentheses. Specifically, [Click here](https://www.website.com). For example, tired of being tracked on the web? Search with DuckDuckGo.
When it's all said and done, more is said than done. -- Lou Holtz
| Left columns | Right columns |
|---|---|
| Taco | $1.99 |
| Pizza | $12.50 |
| Hot Dog | $2.25 |
Code blocks begin (and end) with three slash quotes. The code is inserted between.
msg = 'Hello world'
for i in range(10):
print(msg)
Code can be placed in a sentence such as foo.bar by enclosing the text by keyboard character '96' (to the left of '1' key).
Use three (or more) dashes to make a horizontal line.
Many icons can be displayed. Here are a few examples: a flower, 💮 generated by :white_flower: and fire, 🔥 by :fire:.
To escape any markdown-sensitive character, place a backslash ( \ ) before the character. For example, \*escape\* the asterisk character. If you want a backslash character, escape the backslash with a double backslash ( \\ ).
This assignment covers the basics of Markdown syntax, including headings, lists, hyperlinks, images, blockquotes, and text formatting. It also highlights the importance of converting Markdown to HTML and viewing the output in a web browser to see how it's rendered. Good luck with your Markdown practice!
-
Familiarize yourself with the basics of Markdown syntax by reading a tutorial (like above) or watching a video.
-
Create a new Markdown document using a text editor (e.g., vim) to make notes on a topic of your choice.
-
Add a level one heading and a level two heading to the document.
-
Create an ordered list with at least three items.
-
Create an unordered list with at least three items.
-
Add a hyperlink to a website of your choice.
-
Add an image to the document and adjust its size.
-
Create a blockquote with a relevant quote or message.
-
Add emphasis to a word or phrase using bold or italic styling.
-
Save the document and convert it to HTML using a Markdown converter tool.
-
View the HTML output in a web browser to see how the Markdown syntax is rendered.
