Basic Syntax


Heading

# H1

H1

## H2  

H2

### H3

H3

Heading with custom id

## My Great Heading {#custom-id}

My Great Heading


Bold

**bold text**

bold text

Italic

*italicized text* 

italicized text

Bold and nested italic

**This text is *extremely* important**

This text is extremely important

All bold and italic

***All this text is important***

All this text is important

Strikethrough

~~The world is flat.~~

The world is flat.

Emoji

That is so funny! :joy: 

That is so funny! 😂

Might need som additional software to work. mdbook-emojicodes works for mdBook.

Here's a list of emojis.

Highlight

I need to highlight these ==very important words==.

[!NOTE]
mdBook doesn't support the highlight syntax. Use the html syntax instead.

I need to highlight these <mark>very important words</mark>

I need to highlight these very important words

Subscript

H~2~O

[!NOTE]
mdBook doesn't support the subscript syntax. Use the html syntax instead.

H<sub>2</sub>O

H2O

Superscript

X^2^

[!NOTE]
mdBook doesn't support the superscript syntax. Use the html syntax instead.

X<sup>2</sup>

X2

Blockquote

> blockquote

blockquote


> blockquote
>
> > nested blockquote
>

blockquote

nested blockquote



Ordered List

1. First item
1. Second item
1. Third item
  1. First item
  2. Second item
  3. Third item

Unordered List

- First item
- Second item
- Third item
  • First item
  • Second item
  • Third item

Nested lists

1. First list item
   - First nested list item
     - Second nested list item
  1. First list item
    • First nested list item
      • Second nested list item

Code

`code` 

code

Fenced Code Block

Three backticks makes a fence. Using a tab or 4 blank spaces instead of backticks also works.


```
{
  "firstName": "John",
  "lastName": "Smith",
  "age": 25
}
```

{
  "firstName": "John",
  "lastName": "Smith",
  "age": 25
}

Language specification is optional.

```ruby
require 'redcarpet'
 = Redcarpet.new("Hello World!")
puts .to_
```  
require 'redcarpet'
 = Redcarpet.new("Hello World!")
puts .to_

Horizontal Rule

---


[Guide](https://www.guide.org)

Guide


[an example](http://example.com/ "Title")

an example


Try [Ubuntu][] for your server.

[Ubuntu]: https://ubuntu.com/download/server "Ubuntu Server LTS"

Try Ubuntu for your server.

Image

![alt text](https://png.pngtree.com/png-vector/20220629/ourmid/pngtree-cartoon-little-penguin-operating-a-plane-png-image_5567890.png "My image")

alt text


![Logga][1]

[1]: https://commonmark.org/help/images/favicon.png "Creative Commons licensed"

Logga

Linked image

[![Markdown image](https://commonmark.org/help/images/favicon.png)](https://commonmark.org)  

Markdown image

Table

| Item              | In Stock | Price |
| :---------------- | :------: | ----: |
| Python Hat        |   True | 3.99 |
| SQL Hat           |   Truer   | 23.99 |
| Codecademy Tee    |  False   | 19.99 |
| Codecademy Hoodie |  Falser   | 42.9999 |  

ItemIn StockPrice
Python HatTrue3.99
SQL HatTruer23.99
Codecademy TeeFalse19.99
Codecademy HoodieFalser42.9999

Footnote

Here's a sentence with a footnote. [^1]

[^1]: This is the footnote.

Here's a sentence with a footnote. 1

1

This is the footnote.

Task List

- [x] Write the press release
- [ ] Update the website
- [ ] Contact the media
  • Write the press release
  • Update the website
  • Contact the media

Escaping characters

You can use a backslash \ to escape the following characters:

CharacterName
\backslash
`backtick
*asterisk
_underscore
{ }curly braces
[ ]brackets
< >angle brackets
( )parentheses
#pound sign
+plus sign
-minus sign (hyphen)
.dot
!exclamation mark
|pipe

Escape backticks with two backticks.

``Use `code` in your Markdown file.``  

Use four backticks to enclose code blocks.

````
```ruby
require 'rubygems'
require 'asciidoctor'
```
````