Docsity

Markdown Cheat Sheet: Syntax and Elements, Slides of Advanced Computer Programming

Toggle sidebar
bg1
Content Element What it Looks Like
Syntax
Heading
# H1
## H2
### H3
**bold text**
*italicized text*
This what makes text look **bold**
in a sentence
and this is how to make *italics* in text
# This is an H1
## This is an H2
### This is an H3
Bold
Italic
> blockquote You can block quote a piece of
text with the greater than symbol
Blockquote
1. First item
2. Second item
3. Third item
1. First item in the list
2. Second item in the list
3. Third item
And if you want to create a numbered or
ordered list, <ol><li> </li></ol> in HTML,
just add the number followed by a full stop.
Orderd List
- First item
- Second item
- Third item
- this list
- is not orderd
- at all
while the unordered list equivalent is created
with only a dash - like so:
Unordered
List
`code`
and once you’re done you can
use---to create a horizontal rule like so
\\this code does nothing
except comment
Markdown Cheat sheet
![followed by square brackets
for the alt text] (and-brackets-
for-the-filename.jpg)
And if you’re showing a code highlight,
it’s done through the backquote or `
and once you’re done you can
use — to create a horizontal rule like so
Code
Horizontal
Rule
[Markdown Cheat Sheet]
(http://www.collectiveray.com/
markdown-cheat-sheet)
![alt text](image.jpg)
If you want to display a link, use [square
brackets] followed by (brackets) like this:
Finally, an image is a punctuation mark
Link
Image
BASIC MARKDOWN ELEMENTS CHEAT SHEET
pf2

Partial preview of the text

Download Markdown Cheat Sheet: Syntax and Elements and more Slides Advanced Computer Programming in PDF only on Docsity!

Content Element Syntax What it Looks Like

Heading

# H

## H

### H

bold text

italicized text

This what makes text look ****bold**** in a sentence

and this is how to make _italics_** in text

This is an H

This is an H

### This is an H

Bold

Italic

Blockquote > blockquote^ You can block quote a piece oftext with the greater than symbol

1. First item

2. Second item

3. Third item

  1. First item in the list
  2. Second item in the list
  3. Third item

And if you want to create a numbered or ordered list, in HTML, just add the number followed by a full stop.

Orderd List

  • First item
  • Second item
  • Third item
    • this list
    • is not orderd
    • at all

while the unordered list equivalent is created with only a dash - like so:

Unordered

List

code

and once you’re done you can use---to create a horizontal rule like so

\this code does nothing except comment

Markdown Cheat sheet

![followed by square brackets for the alt text] (and-brackets- for-the-filename.jpg)

And if you’re showing a code highlight, it’s done through the backquote or `

and once you’re done you can use — to create a horizontal rule like so

Code

Horizontal

Rule

[Markdown Cheat Sheet] (http://www.collectiveray.com/ markdown-cheat-sheet)

If you want to display a link, use [square brackets] followed by (brackets) like this:

Finally, an image is a punctuation mark

Link

Image

BASIC MARKDOWN ELEMENTS CHEAT SHEET

Content Element Markdown Syntax What it Looks Like

Table

Row Name Row Name

Fenced

Code Block

Here’s how to create a reference with a footnote. You can find the markdown cheatsheet here^1

  1. And here is where you add the link as your reference

Footnote or

Reference

mark down terms : and their definition

Definition^ mark down terms

List

The world is flat.

You can have tasks, checked with an x between dash - and square brackets or dash and square brackets for unchecked

Strikethrough

Task List

EXTENDED SYNTAX

These elements extend the basic syntax by

adding additional features. But be careful, not all

Markdown applications support these elements.

Row NameDescription Pipesare the separators Dashes with pipesto separate the header from the contents And then as many rowsas you need separated by pipes { "string" : "triple backquote for code", "firstName": "David", "lastName": "Attard", "age": 40 } Here's how to create a reference with a footnote. You can find the markdown cheatsheet here [^1] [^1]: And here is where you add the [link](https://www.collectiveray. com/markdown-cheat-sheet) as your reference - [x] You can have tasks, checked with an x between dash - and square brackets - [ ] or dash and square brackets for unchecked Pipes Dashes with pipes And then as many rows are the separators to separate the header from the contents as you need separated by pipes and their defination Last but we have the **~~double tilde for strikethrough~~** { “ ```” : “triple backquote for code” , “firstName” : “David” “lastname” : “Attard” “age” : 40 }