Markdown Lookup


Markdown Cheatsheet here

1. Code Snippets

  • Python:
 
def foo(x):
	print("Hello", x)
     
if __name__ == "__main__":
	foo("World")
  • r
 
library(gapminder)

library(dplyr)

library("ggplot2")

gapminder_2007<- gapminder %>% filter(year == 2007)

ggplot(gapminder_2007, aes(x= gapminder_2007$gdpPercap, y= gapminder_2007$lifeExp)) + geom_point()
  • Explore more supported languages here

2. Images and Jekyll Images

Place all images in asset/images/ folder or place in desired folder, but that should not contain spaces!!

  • From local source

uploaded image

  • From online source

online image

3. Links to other page

4. Links to external websites

  • Open in new tab
  • Open in same tab

5. Tables

Col1 Col2 Col3
col 3 is right-aligned $1600
col 2 is centered $12
col 1 is left-aligned $1

6. Gifs

7. Paragraphs

8. Youtube videos

9. Different Text levels

10. Lists

11. Inline HTML