Afficher les syntaxes markdown sur un site Hugo
Ce billet regroupe les examples des syntaxes simples du Markdown utilisables dans Hugo.
Et les affiche dans ce billet.
Titres
H1
H2
H3
H4
H5
H6
Gras souligné et italique
_Ceci est un texte italique_
Ceci est un texte italique
__Ceci est un texte gras__
Ceci est un texte gras
~~Ceci est un texte barré~~
Ceci est un texte barré
<u>Ceci est un text souligné</u>
Ceci est un text souligné
Lien en interne
[Link to cv english version]( {{< relref path="/cv" lang="en" >}})
[Link to cv default version (french)]({{/* <relref path="/cv" */>}})
Link to cv default version (french)
Paragraph
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
Blockquotes
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer or cite element, and optionally with in-line changes such as annotations and abbreviations.
Blockquote without attribution
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
> **Note** that you can use *Markdown syntax* within a blockquote.
Tiam, ad mint andaepu dandae nostion secatur sequo quae. Note that you can use Markdown syntax within a blockquote.
Blockquote with attribution
> Don't communicate by sharing memory, share memory by communicating.<br>
> — <cite>Rob Pike[^1]</cite>
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
Don’t communicate by sharing memory, share memory by communicating.
— Rob Pike1
Tables
Tables aren’t part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
Name | Age
--------|------
Bob | 27
Alice | 23
| Name | Age |
|---|---|
| Bob | 27 |
| Alice | 23 |
Inline Markdown within tables
| Italics | Bold | Code |
| -------- | -------- | ------ |
| *italics* | **bold** | `code` |
| Italics | Bold | Code |
|---|---|---|
| italics | bold | code |
List Types
Ordered List
1. First item
2. Second item
3. Third item
- First item
- Second item
- Third item
Unordered List
* List item
* Another item
* And another item
- List item
- Another item
- And another item
Nested list
* Fruit
* Apple
* Orange
* Banana
* Dairy
* Milk
* Cheese
- Fruit
- Apple
- Orange
- Banana
- Dairy
- Milk
- Cheese
Other Elements — abbr, sub, sup, kbd, mark
<abbr title="Graphics Interchange Format">GIF</abbr>
GIF is a bitmap image format.
<sub>2</sub>
H2O
<sup>n</sup>
Xn + Yn = Zn
<kbd>CTRL</kbd>
Press CTRL+ALT+Delete to end the session.
<mark>salamanders</mark>
Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.
Emoji
The Emoji cheat sheet is a useful reference for emoji shorthand codes.
Détail / texte caché
{{< details summary="See the details" >}}
This is a **bold** word.
{{< /details >}}
See the details
This is a bold word.
Qr code
{{< qr >}}
https://gohugo.io
{{< /qr >}}
