- a lightweight markup language with a plain text formatting syntax
- can be converted to html/xhtml and other formats
- it's main purpose is readability and ease of use
- README files (Github)
- Forum and Blog Posts
- Static sites generators
- Presentations
- Headings
- Lists
- Emphasis
- Links
- Blocks of code
- Images
- Quote blocks
- Horizontal rules
- any text editor is good for markdown, choose one with extensions to see live preview of the file (es. vs code)
- or a Chrome extension Markdown Viewer for local/remote files
- html comments are compatible with markdown
- Use hashtag to add heading levels (from one to six #,##,###,####,#####,######)
- To use italics we have two options:
- Use asterisk this is italics
- Use underscores this is italics too
- To use bold characters we also have two options:
- Use double asterisk this is a bold statement
- Use double underscores this is a blunt one too
- To strike characters we use double
tilde
- An horizontal rule is a separator, to make it we have two options:
- Triple hyphens ---
- Triple underscores ___
- In some cases we want to escape a character used by Markdown, in that case we use \ to show the actual special character.
- In example **this will not show in bold**
- To create a block quote we use the > symbol
This is a quote inside a block.
- For links the text we wanna show goes into brackets [] while the URL address we want to point goes inside ()
- i.e. Google
- To quickly turn a URL or email address into a link, enclose it in angle brackets
- i.e. email@email.com or https://google.com
- To add a title when we hover the link we can just add "Title" after the URL address
- i.e. Google
- If you have headers in the markdown files, you can directly link them in the file.
- in example an ## The Header will automatically generate a #the-header anchor we can link
- in this case the link will be Go to header
- ul can be displayed using * for each item
- item 1
- item 1.1
- item 2
- item 2.1
- item 3
- ol can be shown using n. before each item
- Hello
- World
- My name
- How are you?
- We use backticks
import time
- gh has its own flavor of markdown
- for block of codes use triple backticks instead of one ```
- we can also add specific syntax for the language we want to use
import React
const elem = () => {
return(
"This is something"
)
}
export defaults elem
from datetime import datetime
dt = datetime(2020,10,1,12)
def getTime(dt):
return dt.Hour
Tables | Are | Cool |
---|---|---|
col 1 is | left-aligned | $1600 |
col 2 is | centered | $12 |
col 3 is | right-aligned | $1 |
- These shows as checkbox on GH *[x] Task 1 *[x] Task 2 *[ ] Task 3
Academic Markdown 1
Footnotes allow you to add notes and references without cluttering the body of the document. When you create a footnote, a superscript number with a link appears where you added the footnote reference. Readers can click the link to jump to the content of the footnote at the bottom of the page.
To create a footnote reference, add a caret and an identifier inside brackets (2). Identifiers can be numbers or words, but they can’t contain spaces or tabs. Identifiers only correlate the footnote reference with the footnote itself — in the output, footnotes are numbered sequentially.
Add the footnote using another caret and number inside brackets with a colon and text (2: My footnote.). You don’t have to put footnotes at the end of the document. You can put them anywhere except inside other elements like lists, block quotes, and tables.