一个文章的扩展名应该是 .md 或者 .markdown .
一个 Hello World 文章看起来是这样的
# Hello, World! <---- This is title
- time: 2013-08-25 23:30 <---- This is meta
- tags: hello world
---
Hello, World! <---- This is content
This is my first post in catsup.
I'm writing in **MarkDown** !
<strong>HTML is supported, too</strong>
```python
print("I love python")
```
一篇文章由三部分构成:
标题应该始终在文章的第一行,以 # 起头。
元数据是关于文章的一些信息,元数据位于标题之下,分隔符之上。
分隔符下的一切都是正文,正文应该以 Markdown 形式书写。
独立页面是一种特殊的文章。可以通过在元数据中添加 - type: page 将一篇普通文章转换为元数据。
普通文章和独立页面之间有什么区别呢?