info:markdown

Markdown (md)

note Fred: depuis la rédaction de mes polars en asciidoc, je suis devenu un accro du markdown! Couplé à pandoc il fait des merveilles.

Markdown est un langage de balisage léger créé par John Gruber en 2004. Son but est d'offrir une syntaxe facile à lire et à écrire. Un document balisé par Markdown peut être lu en l'état sans donner l’impression d'avoir été balisé ou formaté par des instructions particulières.

Un document balisé par Markdown peut être converti facilement en HTML.

Cheatsheet

images

on peut utiliser la syntaxe standard,

  ![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 1")

si on veut des effets (size, align etc) le plus simple est de faire simplement avec html, eg

  <img src="drawing.jpg" alt="drawing" style="width:200px; float: left; padding-right: 1em"/>

une image avec un lien?

  [![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 1")](url)

Tools & Tips

Tables

Tables aren't part of the core Markdown spec, but they are part of GFM and Markdown Here supports them. They are an easy way of adding tables to your email -- a task that would otherwise require copy-pasting from another application.

Colons can be used to align columns.

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |

There must be at least 3 dashes separating each header cell.
The outer pipes (|) are optional, and you don't need to make the 
raw Markdown line up prettily. You can also use inline Markdown.

Markdown | Less | Pretty
--- | --- | ---
*Still* | `renders` | **nicely**
1 | 2 | 3



Heading
=======

## Sub-heading
 
Paragraphs are separated
by a blank line.

Two spaces at the end of a line  
produces a line break.

Text attributes _italic_, 
**bold**, `monospace`.

Horizontal rule:

---

Bullet list:

  * apples
  * oranges
  * pears

Numbered list:

  1. wash
  2. rinse
  3. repeat

A [link](http://example.com).

![Image](Image_icon.png)

> Markdown uses email-style > characters for blockquoting.

Inline <abbr title="Hypertext Markup Language">HTML</abbr> is supported.

dokuwiki

dw utilise un dialecte pas bien pratique mais plusieurs plugins tentent d'autoriser du md; parmi ceux-ci, il y en a un qui fonctionne bien (au 5.6.2025), commonmark, testé avec succès!

odt / pdf

convertir un .md en .odt (libreoffice/word) puis en .pdf md2pdf

  • info/markdown.txt
  • Dernière modification : 2026/07/03 06:02
  • de radeff