Markdown Common Elements Wednesday. February 24, 2016 - 4 mins This note demonstrates some of what Markdown is capable of doing .
And that’s how to do it.
This note **demonstrates** some of what [Markdown][some/link] is *capable of doing*.
Headings There are six levels of headings. They correspond with the six levels of HTML headings. You’ve probably noticed them already in the page. Each level down uses one more hash character. But we are using just 4 of them.
Headings can be small Headings can be small Headings can be small Headings can be small # Heading
## Heading
### Heading
#### Heading
Lists Ordered list Item 1 A second item Number 3 1. Item 1
2. A second item
3. Number 3
Unordered list An item Another item Yet another item And there’s more… * An item
* Another item
* Yet another item
* And there's more...
Paragraph modifiers Quote Here is a quote. What this is should be self explanatory. Quotes are automatically indented when they are used.
> Here is a quote. What this is should be self explanatory.
URLs URLs can be made in a handful of ways:
* A named link to [MarkItDown][3].
* Another named link to [MarkItDown](http://markitdown.net/)
* Sometimes you just want a URL like <http://markitdown.net/>.
Horizontal rule A horizontal rule is a line that goes across the middle of the page. It’s sometimes handy for breaking things up.
---
Images Markdown can also contain images. I’ll need to add something here sometime.
![Markdowm Image][/image/url]
Figure Caption ?
![Markdowm Image][/image/url]
<figcaption class="caption">Photo by John Doe</figcaption>
Photo by John Doe Bigger Images ?
![Markdowm Image][/image/url]{: class="bigger-image" }
Code A HTML Example:
<!DOCTYPE html>
<html lang= "en" >
<head>
<meta charset= "UTF-8" >
<title> Document</title>
</head>
<body>
<h1> Just a test</h1>
</body>
</html>
A CSS Example:
pre {
padding : 10px ;
font-size : .8em ;
white-space : pre ;
}
pre , table {
width : 100% ;
}
code , pre , tt {
font-family : Monaco , Consolas , Inconsolata , monospace , sans-serif ;
background : rgba ( 0 , 0 , 0 , .05 );
}
A JS Example:
// Sticky Header
$ ( window ). scroll ( function () {
if ( $ ( window ). scrollTop () > 900 && ! $ ( " body " ). hasClass ( ' show-menu ' )) {
$ ( ' #hamburguer__open ' ). fadeOut ( ' fast ' );
} else if ( ! $ ( " body " ). hasClass ( ' show-menu ' )) {
$ ( ' #hamburguer__open ' ). fadeIn ( ' fast ' );
}
});
A Python Example:
## Python Script
# Remove players that are out or questionable
current = current [ current . status == " None " ]
# Create function to extract average points
def get_float ( l , key ):
""" Returns first float value from a list of dictionaries based on key. Defaults to 0.0 """
for d in l :
try :
return float ( d . get ( key ))
except :
pass
return 0.0
asdf
# use function on dataset
current [ " points " ] = [ get_float ( x , " value " ) for x in current . draftStatAttributes ]