markdown file cheatsheet code example
Example 1: markdown table
Layout:
| Tables | Are | Cool |
|----------|:-------------:|------:|
| col 1 is | left-aligned | $1600 |
| col 2 is | centered | $12 |
| col 3 is | right-aligned | $1 |
An amazing website for building a table in markdown:
https:
Example 2: markdown url
[I'm an inline-style link](https:
[I'm an inline-style link with title](https://www.google.com "Google's Homepage")
[I'm a reference-style link][Arbitrary case-insensitive reference text]
[I'm a relative reference to a repository file](../blob/master/LICENSE)
[You can use numbers for reference-style link definitions][1]
Or leave it empty and use the [link text itself].
URLs and URLs in angle brackets will automatically get turned into links.
http:
example.com (but not on Github, for example).
Some text to show that the reference links can follow later.
[arbitrary case-insensitive reference text]: https:
[1]: http:
[link text itself]: http:
Example 3: what is strikethrough in markdown
Wrap your text in tildes(~) for strikethrough'd text.
~~Strikedthrough~~
Example 4: bold in markdown
**This will be bold**
Example 5: markdown cheat sheet
| CRUD | HTTP method | Path | Description | Mongoose methods |
|-------- |------------- |----------- |---------------- |----------------------------------- |
| Read | GET | /cats | get all cats | Cat.find( ) |
| Read | GET | /cats/:id | get one cat | Cat.find({_id:id}) |
| Create | POST | /cats | create one cat | new Cat( ) .save( ) |
| Delete | DELETE | /cats/:id | Delete one cat | Cat.findAndDelete |
| Update | PUT | /cats/:id | Update one cat | Cat.find (make changes).save |
| | | | | Cat is the Mongoose model |