diff --git a/syntax/code.md b/syntax/code.md index 5659c2a..21b2e8d 100644 --- a/syntax/code.md +++ b/syntax/code.md @@ -1,39 +1,33 @@ -# Les blocs de code +# The code blocks -Les blocs de codes pré-formatés sont utlisés pour écrire sur la programmation ou surligner un code source. Plus que de simple pragraphe, les lignes de code d'un bloc de code sont litterallement interprétées. +Pre-formatted code blocks are used to write programming or to highlight source code. More than a simple pragma, the lines of code of a block of code are literally interpreted. -Voici un exemple : +Here is an example : -``` -Ceci est un bloc de code -``` - -Afin de créer un bloc de code en Markdown, il suffit d'identer chaque ligne du bloc avec au moins 4 espaces ou une tabulation. - -Par exemple : + This is a block of code + +In order to create a block of code in Markdown, it is sufficient to ident each line of the block with at least 4 spaces or a tabulation. -``` -Ceci est un paragraphe normal: +For example : - Ceci est un bloc de code. -``` +>This is a normal paragraph: -Vous pouvez également créer un bloc de code separé avec: + This is a block of code. +You can also create a separate code block with: ``` +## Online code block -### Bloc de code en ligne +The online code blocks can be written using: ` -Les blocs de code en ligne peuvent être écrit en utilisant: ` +For example: -Par exemple: +>This is an `on-line code block` - Ceci est `un bloc de code en ligne` +## The syntax highlighting -### La syntaxe de mise en avant +You can define the language used to highlight the syntax by adding a name to an opening keyword. Example: -Vous pouvez definir le langage utlisé pour mettre en évidence la syntaxe en ajoutant un nom sur un mot clé ouvrant. Exemple : - - ```js - var a = {}; - ``` \ No newline at end of file +```js +var a = {}; +``` diff --git a/syntax/images.md b/syntax/images.md index 58bf59d..3475414 100644 --- a/syntax/images.md +++ b/syntax/images.md @@ -33,3 +33,4 @@ What is true about the following line: ```![Funny cat](http://cats.ru/funny.png > Similarly to links, images can have 3 parts: the alternative text, the url and a title. An exclamation mark is nesessary. --- + diff --git a/syntax/links.md b/syntax/links.md index 30945be..9b6451e 100644 --- a/syntax/links.md +++ b/syntax/links.md @@ -1,55 +1,56 @@ -# Links - -Markdown supports two styles of links: inline and reference. - -In both styles, the link text is delimited by [square brackets]. - -To create an inline link, use a set of regular parentheses immediately after the link text’s closing square bracket. Inside the parentheses, put the URL where you want the link to point, along with an optional title for the link, surrounded in quotes. For example: -```markdown -[I'm an inline-style link](https://www.google.com) - -[I'm an inline-style link with title](https://www.google.com "Google's Homepage") - -[I'm a reference-style link][Arbitrary case-insensitive reference text] - -[I'm a relative reference to a repository file](../blob/master/LICENSE) -``` - -Reference-style links use a second set of square brackets, inside which you place a label of your choosing to identify the link: -```markdown -This is [an example][id] reference-style link. -``` - -You can optionally use a space to separate the sets of brackets: -```markdown -This is [an example] [id] reference-style link. -``` - -Then, anywhere in the document, you define your link label like this, on a line by itself: -```markdown -[id]: http://example.com/ "Optional Title Here" -``` - -**GitHub** and **GitBook** supports URL autolinking. They will autolink standard URLs, so if you want to link to a URL (instead of setting link text), you can simply enter the URL and it will be turned into a link to that URL. - - ---- - -Here's a quiz about markdown links. - -Select the valid links: -- [x] `[a link](http://google.fr)` -- [ ] `(a link)[http://google.fr]` - -> The link text is delimited by [square brackets]. - -What are the correct informations from this link: ```[a link](http://google.fr "google")``` -- [ ] the link is https://google.fr -- [x] the title of the link is "google" -- [ ] it'll show the text "google" -- [x] it'll show the text "a link" - -> Links can have 3 parts: the text, the url and a title. - ---- - +# Liens + + Markdown supporte deux types de liens: "incorporé" et "référence". + + Dans les deux styles, le lien de texte est délimité par des crochet []. + + Pour créer un "inline", fixe des parenthèses immédiatement après le lien incorporé fermé par des crochets. A l'intérieur des parenthèses, mets le lien où tu veux renvoyé, accompagné optionnellemnt d'un titre pour le lien, entouré de guillemets. Par example: + ```markdown + + [je suis un lien incorporé](https://www.google.com) + + [je suis un lien incorporé avec titre](https://www.google.com "Google's Homepage") + + [je suis une référence du fichier de dépot](../blob/master/LICENSE) + ``` + + les liens de style reference utilise une seconde fois les crochets, A l'intérieur duquel tu place ton identifiant choisi pour identifier le lien : + ```markdown + Ceci est [un exemple][id] reference-style link. + ``` + + tu peux aussi utilisé un espace pour séparé les deux paires de crochet: + ```markdown + + C'est [un exemple] [id] de lien de style de reference. + ``` + + Puis,n'importe ou dans le document, tu définis l'identifiant de ton lien, sur une seul ligne: + ```markdown + + [id]: http://example.com/ "Le titre optionnel ici" + ``` + + **GitHub** et **GitBook** supportent l'Url automatique. ils vont autoriser les url standard,alors si tu veux relier une URL(au lieu de paramétrer le texte du lien) tu peux simplement entrer l'Url il sera alors transformé en lien vers cette url. + + + --- + + Voici un quizz sur les liens markdown. + + coche les liens vakide: + [x] `[a link](http://google.fr)` + [ ] `(a link)[http://google.fr]` + + > le lien texte est délimité par [des crochets]. + + Quel est l'information correcte à propos de ce lien: ```[a link](http://google.fr "google")``` + - [ ] le lien est https://google.fr + - [x] le titre du lien est "google" + - [ ] ca montrera le mot "google" + - [x] cela montrera le mot "a link" + + > Les liens peuvent avoir trois parties: le texte, l'url et un titre. + + --- + diff --git a/syntax/titles.md b/syntax/titles.md index 3792968..abf060e 100644 --- a/syntax/titles.md +++ b/syntax/titles.md @@ -49,12 +49,12 @@ Select the valid headers: > Headers need space between the hash characters and the text. Select the valid headers: -- [ ] +- [ ] ``` test ######## ``` -- [x] +- [x] ``` test =======