MaisTools
Productivité/

Markdown Cheat Sheet

Référence rapide Markdown : syntaxe, exemples et aperçu côte à côte.

Markdown Cheat Sheet

Syntaxe, exemples et aperçu

Titres

Titre H1

Titre de niveau 1, avec un dièse.

Syntaxe
# Heading 1
Aperçu

Heading 1

Titre H2

Titre de niveau 2, avec deux dièses.

Syntaxe
## Heading 2
Aperçu

Heading 2

Titre H3

Titre de niveau 3, avec trois dièses.

Syntaxe
### Heading 3
Aperçu

Heading 3

Titres H4 à H6

H4, H5 et H6 fonctionnent pareil, avec plus de dièses.

Syntaxe
#### Heading 4
##### Heading 5
###### Heading 6
Aperçu

Heading 4

Heading 5
Heading 6
Syntaxe alternative (setext)

Syntaxe alternative pour H1 et H2 avec un soulignement.

Syntaxe
Heading 1 alt
=============

Heading 2 alt
-------------
Aperçu

Heading 1 alt

Heading 2 alt

Emphase

Gras

Texte en gras, avec deux astérisques ou tirets bas.

Syntaxe
**bold text**
Aperçu

bold text

Italique

Texte en italique, avec un astérisque ou tiret bas.

Syntaxe
*italic text*
Aperçu

italic text

Gras et italique

Combine gras et italique avec trois astérisques.

Syntaxe
***bold and italic***
Aperçu

bold and italic

Barré

Texte barré, avec deux tildes.

Syntaxe
~~strikethrough~~
Aperçu

strikethrough

Surligné

Texte surligné, avec deux signes égal.

Syntaxe
==highlighted==
Aperçu

highlighted

Indice et exposant

Indice avec tildes, exposant avec accents circonflexes.

Syntaxe
H~2~O and X^2^
Aperçu

H2O and X2

Listes

Liste non ordonnée

Utilisez un tiret, un astérisque ou un plus pour chaque élément.

Syntaxe
- Item one
- Item two
- Item three
Aperçu
  • Item one
  • Item two
  • Item three
Liste ordonnée

Numéros suivis d'un point. Le rendu renumérote si besoin.

Syntaxe
1. First
2. Second
3. Third
Aperçu
  1. First
  2. Second
  3. Third
Liste imbriquée

Indentez deux espaces par niveau pour créer des sous-listes.

Syntaxe
- Parent
  - Child
    - Grandchild
Aperçu
  • Parent
    • Child
      • Grandchild
Liste de tâches

Utilisez [x] pour fait et [ ] pour en attente.

Syntaxe
- [x] Done
- [ ] Pending
- [ ] Todo
Aperçu
  • Done
  • Pending
  • Todo

Liens

Lien de base

Texte entre crochets, URL entre parenthèses.

Syntaxe
[MaisTools](https://maistools.com)
Aperçu
Lien avec tooltip

Ajoutez une légende entre guillemets après l'URL.

Syntaxe
[Hover me](https://maistools.com "Tooltip text")
Aperçu
Lien par référence

Définissez l'URL une fois et référencez-la par identifiant.

Syntaxe
[Reference link][ref]

[ref]: https://maistools.com
Auto-lien

Entourez l'URL de chevrons pour la rendre cliquable.

Syntaxe
<https://maistools.com>

Images

Image

Comme un lien, mais précédé d'un point d'exclamation.

Syntaxe
![Alt text](https://placehold.co/120x60)
Aperçu

Alt text

Image avec tooltip

Ajoutez une légende entre guillemets pour l'accessibilité.

Syntaxe
![Alt](https://placehold.co/120x60 "Tooltip")
Aperçu

Alt

Image cliquable

Encadrez l'image dans un lien pour la rendre cliquable.

Syntaxe
[![Logo](https://placehold.co/120x60)](https://maistools.com)
Aperçu

Code

Code en ligne

Entourez les courts extraits d'accents graves.

Syntaxe
Inline `code` here.
Aperçu

Inline code here.

Bloc de code

Trois accents graves sur leur propre ligne délimitent un bloc.

Syntaxe
```
code block
  with indentation
```
Aperçu
code block
  with indentation
Bloc avec langage

Indiquez le langage après les accents graves pour la coloration.

Syntaxe
```js
const x = 42;
console.log(x);
```
Aperçu
const x = 42;
console.log(x);

Citations

Citation

Mettez un signe supérieur au début de chaque ligne.

Syntaxe
> A quote line.
> Another line.
Aperçu
A quote line.
Another line.
Citation imbriquée

Utilisez plusieurs signes supérieurs pour des citations imbriquées.

Syntaxe
> Outer quote
>
> > Nested quote
Aperçu
Outer quote
>
> Nested quote

Tableaux

Tableau de base

En-tête en première ligne, séparateur en seconde, données ensuite.

Syntaxe
| Fruit  | Color  |
| ------ | ------ |
| Apple  | Red    |
| Banana | Yellow |
Aperçu
FruitColor
AppleRed
BananaYellow
Alignement des colonnes

Utilisez les deux-points dans le séparateur pour aligner.

Syntaxe
| Left | Center | Right |
| :--- | :----: | ----: |
| a    | b      | c     |
Aperçu
LeftCenterRight
abc

Autres

Ligne horizontale

Trois tirets, astérisques ou tirets bas sur une ligne vide.

Syntaxe
Above

---

Below
Aperçu

Above


Below

Saut de ligne

Deux espaces en fin de ligne forcent un saut.

Syntaxe
Line 1.  
Line 2.
Aperçu

Line 1.
Line 2.

Échapper des caractères

Préfixez un caractère par une barre oblique inverse pour le garder littéral.

Syntaxe
Escape: \*not italic\* and \# not heading
Aperçu

Escape: *not italic* and # not heading

Note de bas de page

Utilisez [^id] dans le texte et [^id] : définition plus bas.

Syntaxe
Footnote ref[^1]

[^1]: Footnote content.
Aperçu

Footnote ref1


  1. Footnote content.
Liste de définitions

Terme sur une ligne, définitions préfixées par deux-points.

Syntaxe
Term
: Definition one
: Definition two
Aperçu
Term
Definition one
Definition two