table in markdown 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://www.tablesgenerator.com/markdown_tables
Example 2: table in markdown
Colons can be used to align columns.
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
Markdown | Less | Pretty
--- | --- | ---
*Still* | `renders` | **nicely**
1 | 2 | 3
Example 3: what is strikethrough in markdown
Wrap your text in tildes(~) for strikethrough'd text.
~~Strikedthrough~~
Example 4: markdown table
| Syntax | Description | Test Text |
| :--- | :----: | ---: |
| Header | Title | Here's this |
| Paragraph | Text | And more |
Example 5: code highlight in readme
```js
function myFunction () {
return 42;
}
```
Example 6: html to markdown table
To convert a WYSIWYG (Word, Docs) to Markdown:
1. Copy your table in your clipboard.
2. Use this link to convert your table to HTML:
https://www.tablesgenerator.com/html_tables
3. Then use this one to convert the HTML result into Markdown:
https://www.tablesgenerator.com/markdown_tables