| 1 |
In 1958, Mahatma Gandhi was quoted as follows: |
| 2 |
|
| 3 |
> The Earth provides enough to satisfy every man's need but not for every man's |
| 4 |
> greed. |
| 5 |
|
| 6 |
In [The CommonMark Specification](https://spec.commonmark.org/0.29/) John |
| 7 |
MacFarlane writes: |
| 8 |
|
| 9 |
> What distinguishes Markdown from many other lightweight markup syntaxes, |
| 10 |
> which are often easier to write, is its readability. As Gruber writes: |
| 11 |
|
| 12 |
> > The overriding design goal for Markdown's formatting syntax is to make it |
| 13 |
> > as readable as possible. The idea is that a Markdown-formatted document should |
| 14 |
> > be publishable as-is, as plain text, without looking like it's been marked up |
| 15 |
> > with tags or formatting instructions. ( |
| 16 |
> > [http://daringfireball.net/projects/markdown/](http://daringfireball.net/projects/markdown/) |
| 17 |
> > ) |
| 18 |
|
| 19 |
> The point can be illustrated by comparing a sample of AsciiDoc with an |
| 20 |
> equivalent sample of Markdown. Here is a sample of AsciiDoc from the AsciiDoc |
| 21 |
> manual: |
| 22 |
|
| 23 |
> ```AsciiDoc |
| 24 |
> 1. List item one. |
| 25 |
> + |
| 26 |
> List item one continued with a second paragraph followed by an |
| 27 |
> Indented block. |
| 28 |
> + |
| 29 |
> ................. |
| 30 |
> $ ls *.sh |
| 31 |
> $ mv *.sh ~/tmp |
| 32 |
> ................. |
| 33 |
> + |
| 34 |
> List item continued with a third paragraph. |
| 35 |
> |
| 36 |
> 2. List item two continued with an open block. |
| 37 |
> ... |
| 38 |
> ``` |
| 39 |
The quotation includes an embedded quotation and a code quotation and ends with |
| 40 |
an ellipsis due to being incomplete. |
| 41 |
|
| 42 |
Now let's have an indented code block: |
| 43 |
|
| 44 |
#include <stdio.h> |
| 45 |
|
| 46 |
int main(void) |
| 47 |
{ |
| 48 |
printf("# hello markdown\n"); |
| 49 |
return 0; |
| 50 |
} |
| 51 |
|
| 52 |
and end with a fenced code block: |
| 53 |
~~~pseudocode |
| 54 |
#include <something.h> |
| 55 |
#include <else.h> |
| 56 |
|
| 57 |
a block { |
| 58 |
a statement; |
| 59 |
another statement; |
| 60 |
} |
| 61 |
~~~ |
| 62 |
|