1. Markdown

This is a post written in plain Markdown (*.md)

Write a task list:

  • Write an R package.
  • Write a book.
  • Profit!

2. Sample Text

Second-level header

Third-level header

Fourth-level header

A paragraph:

人们总爱追问人生的意义,其实人生本无所谓意义,因为存在先于本质,本质之前的存在是禁绝思考的。人生的无意义赋予了人的自由,倘若人生有一个注定的意义,那么人人都如同一具机器。

A blockquote:

生命是一团欲望,不能满足便痛苦,满足便无聊,人生就在痛苦和无聊之间摇摆。

Some code:

(function() {
  var quotes = document.getElementsByTagName('blockquote'), i, quote;
  for (i = 0; i < quotes.length; i++) {
    quote = quotes[i];
    var n = quote.children.length;
    if (n === 0) continue;
    var el = quote.children[n - 1];
    if (!el || el.nodeName !== 'P') continue;
    // right-align a quote footer if it starts with ---
    if (/^—/.test(el.textContent)) el.style.textAlign = 'right';
  }
})();

A table (centered by default):

Sepal.Length Sepal.Width Petal.Length Petal.Width Species
5.1 3.5 1.4 0.2 setosa
4.9 3.0 1.4 0.2 setosa
4.7 3.2 1.3 0.2 setosa
4.6 3.1 1.5 0.2 setosa
5.0 3.6 1.4 0.2 setosa
5.4 3.9 1.7 0.4 setosa

An image (automatically centered when it is appropriate):

Happy Elmo

Looks good?

Roy

Category: tech