Answers for "markdown code block"

21

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
Posted by: Guest on December-07-2020
10

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
Posted by: Guest on May-01-2020
4

code in markdown

```<name of the language>
<code>
```

EXAMPLE

```python
print("Hello World")
```
Posted by: Guest on December-08-2020
6

how to create link in readme.md

[a link] (https://github.com/user/repo/blob/branch/other_file.md)
Posted by: Guest on August-30-2020
2

code blocks md

```
function test() {
  console.log("notice the blank line before this function?");
}
```
Posted by: Guest on September-30-2020
-1

markdown code block

```ruby
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
```
Posted by: Guest on January-21-2021

Browse Popular Code Answers by Language