Translates from English

Markdown is a lightweight and popular text metalanguage which is a writing standard for scientists with extension .md or .markdown.
It is often converted into HTML what allows it to be easily shared on the web :spider_web:.

After the matching HTML text can be decorate and animate by CSS style sheet and/or JS script:

Markdown processor
Markdown processor

Discover the Markdown syntax used on this blog and more generally on the web.

Text

Highlight

Enhance your text:

Italics: italics or italics
Bold: bold or bold
Strikethrough: Strikethrough
Bold & Italics: bold italics or bold italics
Inline code: code

Source code:

Italics: *italics* or _italics_  
Bold:	**bold** or __bold__ 
Strikethrough: ~~Strikethrough~~
Bold & Italics: **_bold italics_** or __*bold italics*__
Inline code: `code`

New line & paragraph

Let 2 trailing spaces to have an end of line, and let a empty line for a new paragraph:

Hello,

World!

Source code:

Hello,␣␣\n
\n
World!\n

Note: \n and represent respectively a new line character and a space character.

Headings

Make a part, a subpart and a sub-subpart:

Source code:

# H1
## H2
### H3


H1
======

H2
------

List

Build an ordered list:

  1. item
  2. item
  3. item

Source code:

1. item
2. item
3. item

Build a unordered list:

  • item
  • item
  • item

Source code:

 * item
 * item
 * item

Quote

Talk is cheap. Show me the code.

Linus Torvalds

Source code:

> Talk is cheap. Show me the code.

Linus Torvalds

Emoticon

Use emoji :

:smile: :scream: :yum:

Source code:

:smile: :scream: :yum:

Simple link (works with absolute and relative link):

Google

Source code:

[Google](https://www.google.com)

Source code:

[Google](https://www.google.com "Google's Homepage")

You can use shortcut for your links to use that several times on article or to centralize links:

Google1 Google2

Source code:

[Google1][1] [Google2][1]

[1]: https://www.google.com

Notes

Info

INFO

Source code:

<pre class=" info">
INFO
</pre>

Question

QUESTION

Source code:

<pre class="question">
QUESTION
</pre>

Warning

WARNING

Source code:

<pre class="warning">
WARNING
</pre>

Error

ERROR

Source code:

<pre class="error">
ERROR
</pre>

Informatics code

Programming language

Terminal

$ command
result

Source code:

~~~ terminal
$ command
result
~~~

Python

print("Hello world!")

Source code:

~~~ python
print("Hello world!")
~~~

Java

System.out.println("Hello world!");

Source code:

~~~ java 
System.out.println("Hello world!");
~~~

Bash

echo "Hello world!"

Source code:

~~~ bash 
echo "Hello world!"
~~~

Ruby

puts "Hello world!"

Source code:

~~~ ruby 
puts "Hello world!"
~~~

Go

import("fmt")

fmt.Println("Hello world!")

Source code:

~~~ go
import("fmt")

fmt.Println("Hello world!")
~~~

JavaScript

console.log("Hello world!");

Source code:

~~~ javascript
console.log("Hello world!");
~~~

HTML

<p>Hello world!</p>

Source code:

~~~ html
<p>Hello world</p>
~~~

CSS

.hello-world {
  text-align: center
}

Source code:

~~~ css
.hello-world {
  text-align: center
}
~~~

Text file

Plain text

"Hello World!"

Source code:

~~~
"Hello World!"
~~~

JSON

{"message": "Hello World!"}

Source code:

~~~ json
{"message": "Hello World!"}
~~~

YAML

hello:
  world: "Hello World!"

Source code:

~~~ yaml
hello:
  world: "Hello World!"
~~~

XML

<?xml version="1.0" encoding="UTF-8"?>
<message>Hello World!</message>

Source code:

~~~ xml

Hello World!
~~~

INI

[message]
message="Hello World!"

Source code:

~~~ ini
[message]
message="Hello World!"
~~~

Mathematics Formula

Use LateX syntax, see https://www.latex-project.org .

Inline formula

This formula $\int_0^1 x^2dx = \frac{1}{3}$ is inline.

Source code:

$\int_0^1 x^2dx = \frac{1}{3}$

Multiline formula

This formula is multiline:

Source code:

$$
\int_0^1 xdx = \frac{1}{2} \\
\int_0^1 x^2dx = \frac{1}{3} 
$$
Creative Commons Attribution 4.0 International License:

Also read
Comments