Ci-dessous, les différences entre deux révisions de la page.
| — | fr:syntax.md [16/03/2025 15:23] (Version actuelle) – créée - modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | # Syntaxe | ||
| + | |||
| + | Markdown is intended to be as easy-to-read and easy-to-write as is feasible. | ||
| + | [Anonymous Contributors, | ||
| + | <WRAP center round help 60%> | ||
| + | bloc aide | ||
| + | </ | ||
| + | |||
| + | Readability, | ||
| + | document should be publishable as-is, as plain text, without looking | ||
| + | like it's been marked up with tags or formatting instructions. The single biggest source of | ||
| + | inspiration for Markdown' | ||
| + | |||
| + | |||
| + | [3]: http:// | ||
| + | [4]: http:// | ||
| + | |||
| + | |||
| + | To this end, [Markdown' | ||
| + | characters, which punctuation characters have been carefully chosen so | ||
| + | as to look like what they mean. E.g., asterisks around a word actually | ||
| + | look like \*emphasis\*. Markdown lists look like, well, lists. Even | ||
| + | blockquotes look like quoted passages of text, as used in email. The original syntaxe is completed by the complimetary [Markdown Extra][4] which is in use hère. | ||
| + | |||
| + | |||
| + | ##Emphasis | ||
| + | |||
| + | *Emphasize* _emphasize_ | ||
| + | **Strong** __Strong__ | ||
| + | |||
| + | |||
| + | *Emphasize* _emphasize_ | ||
| + | **Strong** __Strong__ | ||
| + | |||
| + | |||
| + | ## Other inline style | ||
| + | |||
| + | Markdown is pretty limited but HTML is valid Markdown. Here is some useful HTML syntax. | ||
| + | |||
| + | ### Striked text | ||
| + | |||
| + | < | ||
| + | |||
| + | < | ||
| + | |||
| + | ### Underlined text | ||
| + | |||
| + | < | ||
| + | |||
| + | < | ||
| + | |||
| + | ### Highlighted text | ||
| + | |||
| + | < | ||
| + | |||
| + | < | ||
| + | |||
| + | ### Superscrit and subscript | ||
| + | |||
| + | H< | ||
| + | Au 20< | ||
| + | |||
| + | H< | ||
| + | Au 20< | ||
| + | |||
| + | ### Keyboard | ||
| + | |||
| + | |||
| + | With the < | ||
| + | |||
| + | With the < | ||
| + | |||
| + | ### Sample text | ||
| + | |||
| + | Plain text style. Appear in monospace font. | ||
| + | |||
| + | < | ||
| + | |||
| + | < | ||
| + | |||
| + | ## Liens | ||
| + | |||
| + | ### External links | ||
| + | |||
| + | A [link](http:// | ||
| + | |||
| + | A [link](http:// | ||
| + | |||
| + | ### Liens à la racine | ||
| + | |||
| + | [voici un lien](/ | ||
| + | |||
| + | [voici un lien](/ | ||
| + | |||
| + | ### Liens dans la même section | ||
| + | |||
| + | Par exemple, pour lier un terme du glossaire, si vous êtes dans le glossaire. | ||
| + | |||
| + | [voici un lien](syntax.md) | ||
| + | |||
| + | [voici un lien](syntax.md) | ||
| + | |||
| + | ### Liens dans une autre section | ||
| + | |||
| + | [voici un lien](? | ||
| + | |||
| + | [voici un lien](? | ||
| + | |||
| + | ou | ||
| + | |||
| + | [voici un lien](/ | ||
| + | |||
| + | [voici un lien](/ | ||
| + | |||
| + | |||
| + | |||
| + | ### Referenced Links | ||
| + | |||
| + | Some text with [a link][1] and another [link][2]. | ||
| + | |||
| + | [1]: http:// | ||
| + | [2]: http:// | ||
| + | |||
| + | Some text with [a link][5] and another [link][6]. | ||
| + | |||
| + | [5]: http:// | ||
| + | [6]: http:// | ||
| + | |||
| + | |||
| + | The reference section can be anywhere in the document | ||
| + | |||
| + | |||
| + | ##Inline Images | ||
| + | |||
| + |  makes images accessible to visually impaired | ||
| + | |||
| + | You can use `_media/` as a shorthand for `lib/ | ||
| + | |||
| + |  — | ||
| + | `objc` — | ||
| + | `perl` — | ||
| + | `php` — | ||
| + | `text` — | ||
| + | `powershell` — | ||
| + | `python` — | ||
| + | `r` — | ||
| + | `ruby` — | ||
| + | `scala` — | ||
| + | `sql` — | ||
| + | `vb` — | ||
| + | `xml`. | ||
| + | |||
| + | ## Headers | ||
| + | |||
| + | # Header 1 | ||
| + | ## Header 2 {#header2} | ||
| + | ### Header 3 {.head} | ||
| + | #### Header 4 #### | ||
| + | ##### Header 5 ##### | ||
| + | ###### Header 6 ###### | ||
| + | |||
| + | # Header 1 | ||
| + | ## Header 2 {# | ||
| + | ### Header 3 {.head} | ||
| + | #### Header 4 #### | ||
| + | ##### Header 5 ##### | ||
| + | ###### Header 6 ###### | ||
| + | |||
| + | Closing hash marks are optional on all levels | ||
| + | |||
| + | ## | ||
| + | |||
| + | Markdown | ||
| + | : Text-to-HTML conversion tool | ||
| + | |||
| + | Markdown | ||
| + | : Text-to-HTML conversion tool | ||
| + | |||
| + | Formatting for definition lists may vary between themes | ||
| + | |||
| + | ## | ||
| + | |||
| + | Markdown converts text to HTML. | ||
| + | |||
| + | *[HTML]: HyperText Markup Language | ||
| + | |||
| + | Markdown converts text to HTML. | ||
| + | |||
| + | *[HTML]: HyperText Markup Language | ||
| + | |||
| + | Definitions can be anywhere in the document | ||
| + | |||
| + | ##Tables | ||
| + | |||
| + | One | Two | Three | ||
| + | --- | :---: | ---: | ||
| + | Blue | White | Gray | ||
| + | Green | **Yellow** | Red | ||
| + | |||
| + | One | Two | Three | | ||
| + | --- | :---: | ---: | ||
| + | Blue | White | Gray | | ||
| + | Green | **Yellow** | Red | | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | The colon in the separator line tells the parser the alignment to apply to the column. Markdown inline is possible. | ||
| + | |||
| + | ## | ||
| + | |||
| + | Three or more dashes or asterisks `---` `***` | ||
| + | |||
| + | --- | ||
| + | |||
| + | ##Citations | ||
| + | |||
| + | To make citations, use `< | ||
| + | |||
| + | |||
| + | |||
| + | ### | ||
| + | |||
| + | In HTML, there are two characters that demand special treatment: `<` | ||
| + | and `&`. Left angle brackets are used to start tags; ampersands are | ||
| + | used to denote HTML entities. If you want to use them as literal | ||
| + | characters, you must escape them as entities, e.g. `<`, and | ||
| + | `& | ||
| + | |||
| + | Ampersands in particular are bedeviling for web writers. If you want to | ||
| + | write about ' | ||
| + | escape ampersands within URLs. Thus, if you want to link to: | ||
| + | |||
| + | http:// | ||
| + | |||
| + | you need to encode the URL as: | ||
| + | |||
| + | http:// | ||
| + | |||
| + | in your anchor tag `href` attribute. Needless to say, this is easy to | ||
| + | forget, and is probably the single most common source of HTML validation | ||
| + | errors in otherwise well-marked-up web sites. | ||
| + | |||
| + | Markdown allows you to use these characters naturally, taking care of | ||
| + | all the necessary escaping for you. If you use an ampersand as part of | ||
| + | an HTML entity, it remains unchanged; otherwise it will be translated | ||
| + | into `& | ||
| + | |||
| + | So, if you want to include a copyright symbol in your article, you can write: | ||
| + | |||
| + | © | ||
| + | © | ||
| + | |||
| + | and Markdown will leave it alone. But if you write: | ||
| + | |||
| + | AT&T | ||
| + | AT&T | ||
| + | |||
| + | Markdown will translate it to: | ||
| + | |||
| + | AT& | ||
| + | |||
| + | Similarly, because Markdown supports [inline HTML](# | ||
| + | angle brackets as delimiters for HTML tags, Markdown will treat them as | ||
| + | such. But if you write: | ||
| + | |||
| + | 4 < 5 | ||
| + | |||
| + | Markdown will translate it to: | ||
| + | |||
| + | 4 < 5 | ||
| + | |||
| + | However, inside Markdown code spans and blocks, angle brackets and | ||
| + | ampersands are *always* encoded automatically. This makes it easy to use | ||
| + | Markdown to write about HTML code. (As opposed to raw HTML, which is a | ||
| + | terrible format for writing about HTML syntax, because every single `<` | ||
| + | and `&` in your example code needs to be escaped.) | ||
| + | |||
| + | |||
| + | |||
| + | ##Backslash Escapes | ||
| + | |||
| + | |||
| + | <a href=" | ||
| + | Markdown allows you to use backslash escapes to generate literal | ||
| + | characters which would otherwise have special meaning in Markdown' | ||
| + | formatting syntax. For example, if you wanted to surround a word | ||
| + | with literal asterisks (instead of an HTML `< | ||
| + | backslashes before the asterisks, like this: | ||
| + | |||
| + | \*literal asterisks\* | ||
| + | |||
| + | \*literal asterisks\* | ||
| + | |||
| + | Markdown provides backslash escapes for the following characters: | ||
| + | |||
| + | \ | ||
| + | ` | ||
| + | * | ||
| + | _ | ||
| + | {} curly braces | ||
| + | [] square brackets | ||
| + | () parentheses | ||
| + | # hash mark | ||
| + | + plus sign | ||
| + | - minus sign (hyphen) | ||
| + | . dot | ||
| + | ! | ||