~/snippets/markdown-code-block
Published on

Markdown Code Block

211 words2 min read

Basic syntax

# Start a heading with one hash

## Start a subheading with two hashes

Paragraphs are separated by empty lines.

**Bold text** is wrapped in double asterisks,

_italic_ in underscores,

`monospace` in backticks.

[A link](https://groovyghost.in/).

![An image](/avatar.jpeg)

    # Indented code block
    hello() { echo 'Hello'; }

A list of items:

- Each item is on its line
- Lines start with `-`

An ordered list:

1. The first item
1. The second item can start with `1.` too
1. Markdown handles the numbering for you.

Use triple backticks to create a code block in markdown

```language
your code goes here
```

To convert markdown to HTML you can use lowdown, pandoc or with original markdown.pl