好的排版可以突出重点,也方便阅读/编辑。
格式:`Unix`,效果:Unix
。
这样的等宽样式即可以突出术语重点,也过很优美。
语法染色方便阅读。
格式:
```c
#include <stdio.h>
int main(int argc, char *argv[])
{
puts("Hello World");
return 0;
}
```
效果:
#include <stdio.h>
int main(int argc, char *argv[])
{
puts("Hello World");
return 0;
}
方便编辑时迅速识别。
格式:
HEAD 1
=====================
HEAD 2
---------------------
这样方便编辑。
“For a long time it puzzled me how something so expensive, so leading edge, could be so useless.
And then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart things,
while computer programmers are smart people with the ability to do incredibly stupid things.
They are, in short, a perfect match.”
— Bill Bryson
因为在Markdown
换行是不分段的(通过空行分段),所以不影响显示效果。上面内容显示效果如下:
“For a long time it puzzled me how something so expensive, so leading edge, could be so useless. And then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match.”
— Bill Bryson