Aide-mémoire Markdown

Posted on Thu 12 March 2020 in tutoriels • 2 min read

Pour tester les différentes extensions.

Tableaux:

Ma ganache ligne 1
- item 1
- toto

Deuxieme test:

test ligne 1
: : test :
ligne2

Collapsible block :

CLICK ME

### yes, even hidden code blocks!

print("hello world!")

stuff with *mark* **down**

##*formatted* **heading** with [a](link)

code block
nested stuff

* list * with 1. nested 1. items “`java // including code “` 1. blocks

Fenced code block :

# python code

Check lists:

Font-awesome icons :

@icon-camera : <- un appareil photo ? @info-circle: info ?

:github: <= github ?>

Avec les appels html:

Accès aux attributs HTML

Ajouter une classe à un element: `{: .nom_classe}“

Lien sortant google.fr

Code

   print('bonjour')
   import numpy as np
   int main()
   {
   cout << "rien" << endl;
   }

Test coloration syntaxique :

# add a layer that returns the concatenation
# of the positive part of the input and
# the opposite of the negative part

def antirectifier(x):
    x -= K.mean(x, axis=1, keepdims=True)
    x = K.l2_normalize(x, axis=1)
    pos = K.relu(x)
    neg = K.relu(-x)
    return K.concatenate([pos, neg], axis=1)

def antirectifier_output_shape(input_shape):
    shape = list(input_shape)
    assert len(shape) == 2  # only valid for 2D tensors
    shape[-1] *= 2
    return tuple(shape)

model.add(Lambda(antirectifier,
                 output_shape=antirectifier_output_shape))

Test admonition syntaxe:

Note

Ceci devrait être bleu.

Attention

Ne faites pas ça chez vous ! Ça devrait être affiché en rouge.

Bonne pratique !

Et là ça devrait être un conseil en vert.

Un conseil sans titre…

Warning

Un warning avec le titre par défaut.

Test du style pour la ligne de commande (bash)

# ceci est un script bash
for i in {1..10}; do
    echo $i;
done
#Ceci est une suite de commnades en ligne.
ls -l 
cd toto/
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#!/usr/bin/python
# Ceci est du code python
def antirectifier(x):
    x -= K.mean(x, axis=1, keepdims=True)
    x = K.l2_normalize(x, axis=1)
    pos = K.relu(x)
    neg = K.relu(-x)
    return K.concatenate([pos, neg], axis=1)

#!bash
ls -l

Test syntaxe:

def antirectifier(x):
    x -= K.mean(x, axis=1, keepdims=True)
    x = K.l2_normalize(x, axis=1)
    pos = K.relu(x)
    neg = K.relu(-x)
    return K.concatenate([pos, neg], axis=1)

Test footnote:

du texte avec une footnote1

Test niveaux de titres

Titre 2

Titre 3

Titre 4

Titre 5
Titre 6

Test check boxes (emojis):


  1. This is the first footnote.