Paragraphs are separated by a blank line.
2nd paragraph. Italic, bold, and monospace
.
Itemized lists look like:
Have some emojis: 💻 ⌨️ 🖱️
Here is an en-dash: –, em-dash: —, elipsis: …, and “quotes”.
Here’s a numbered list:
Block quotes are written like so:
- Some
- Another
They can span multiple paragraphs, if you like.
Here’s a code sample:
# Let me re-iterate ... for i in 1 .. 10 { do-something(i) }
You can optionally mark the delimited block for prism to syntax highlight it:
import hashlib
def hash_file(filename): """"This function returns the SHA-1 hash of the file passed into it"""
# make a hash object h = hashlib.sha1()
# open file for reading in binary mode with open(filename,'rb') as file:
# loop till the end of the file chunk = 0 while chunk != b'': # read only 1024 bytes at a time chunk = file.read(1024) h.update(chunk)
# return the hex representation of digest return h.hexdigest()
message = hash_file("track1.mp3")print(message)
You can also strikethrough a line.
Now a nested list:
First, use these tools:
Boil some water.
Dump everything in the pot and follow this algorithm:
function tick() { const element = ( <div> <h1>Hello, world!</h1> <h2>It is {new Date().toLocaleTimeString()}.</h2> </div> ); ReactDOM.render(element, document.getElementById('root'));}
setInterval(tick, 1000);
Don’t forget you can highlight lines as well!
Here’s a link to a website and to a section heading in the current doc. Here are footnotes 1 2.
Tables look like this:
Name | Size | Material | Color |
---|---|---|---|
All Business | 9 | leather | brown |
Roundabout | 10 | hemp canvas | natural |
Cinderella | 11 | glass | transparent |
Multi-line tables:
Keyword | Text |
---|---|
red | Sunsets, apples, and other red or reddish things. |
green | Leaves, grass, frogs and other things it’s not easy being. |
A horizontal rule follows.
Images can be specified like so:
And note that you can backslash-escape any punctuation characters which you wish to be displayed literally, ex.: `foo`, *bar*, etc.