Topic : Learning Basic Markdown Date : May 31st, 2022
This activity was organized by the Technical Writer Squad PT. Warung Pintar Sekali as a "Learning New Things" material that is held every two months on a regular basis.
To create a heading, add number signs (#) in front of a word or phrase. The number of number signs you use should correspond to the heading level. For example, to create a heading level three (
<h3>
), use three number signs (e.g., ### My Header).
Do This | Don't Do This |
---|---|
# Here's a Heading | #Here's a Heading |
To create paragraphs, use a blank line to separate one or more lines of text.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
NOTES : Unless the paragraph is in a list, don’t indent paragraphs with spaces or tabs.
To bold text, add two asterisks or underscores before and after a word or phrase. To bold the middle of a word for emphasis, add two asterisks without spaces around the letters.
I just love bold text.
I just love bold text.
Loveisbold
Do This | Don't Do This |
---|---|
Loveisbold | Love__is__bold |
To italicize text, add one asterisk or underscore before and after a word or phrase. To italicize the middle of a word for emphasis, add one asterisk without spaces around the letters.
Italicized text is the cat's meow.
Italicized text is the cat's meow.
Acatmeow
Do This | Don't Do This |
---|---|
Acatmeow | A_cat_meow |
To create a blockquote, add a > in front of a paragraph.
Nested Blockquotes
Dorothy followed her through many of the beautiful rooms in her castle.
The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
To create an ordered list, add line items with numbers followed by periods. The numbers don’t have to be in numerical order, but the list should start with the number one.
- First item
- Second item
- Indented item
- Indented item
- Third item
- Fourth item
To create an unordered list, add dashes (-), asterisks (*), or plus signs (+) in front of line items. Indent one or more items to create a nested list.
- First item
- Second item
- Indented item
- Indented item
- Third item
- Fourth item
Starting Unordered List Items With Numbers
- 1968. A great year!
- I think 1969 was second best.
To denote a word or phrase as code, enclose it in backticks (`).
At the command prompt, type nano
.
Code blocks are normally indented four spaces or one tab. When they’re in a list, indent them eight spaces or two tabs.
-
Open the file.
-
Find the following code block on line 21:
<html> <head> <title>Test</title> </head>
-
Update the title to match the name of your website.
To create a horizontal rule, use three or more asterisks (***), dashes (---), or underscores (___) on a line by themselves.
To create a link, enclose the link text in brackets (e.g., [Duck Duck Go]) and then follow it immediately with the URL in parentheses (e.g., (https://duckduckgo.com)).
My Favorite website is warungpintar.co.id
Adding Titles
My Favorite website is warungpintar.co.id
To add an image, add an exclamation mark (!), followed by alt text in brackets, and the path or URL to the image asset in parentheses. You can optionally add a title in quotation marks after the path or URL.
To add a link to an image, enclose the Markdown for the image in brackets, and then add the link in parentheses.