Skip to content

Instantly share code, notes, and snippets.

@feihong
Last active October 24, 2015 20:47
Show Gist options
  • Save feihong/50cc365bb8ad9850a10c to your computer and use it in GitHub Desktop.
Save feihong/50cc365bb8ad9850a10c to your computer and use it in GitHub Desktop.
ReStructuredText cheatsheet

Basics

  • emphasis
  • boldface
  • code samples
  • Subscript: H2O
  • Superscript: E = mc2
  1. This is a reStructuredText primer.
  2. This is a quickstart guide from the official site.

Let's try another anonymous link, shall we?

But maybe push our luck and do another one to see what happens.

Substitution

I am 飞鸿.

Definition list

学海无涯

sea of learning, no horizon (idiom)

no limits to what one still has to learn

ars longa, vita brevis

Quoted paragraph

云梦城之谜》带你穿梭明朝弄臣历史:开场悬疑,云梦泽凶案后,十年来朝中多次派人进入云梦泽搜索古城,每次都无功而返,古城就像消失了……清楚整件事来龙去脉者,只有五个半,五个人分别是皇上、权倾朝中的凤公公、厂卫第一高手季聂提、「御前猎手」辜月明,湖广布政史司钱世臣。另外半个,则是人称「道家行者」的戈墨,此人道法高明,有捉鬼驱魔的特殊本领。与辜月明更是势不两立。辜明月奉命要拿回楚盒与夫勐人头,他究竟能否解开云梦城消失之谜?解开自己害怕战争这无可告人的心结?千年前到底发生了什么事?为什么他们都曾像置身其中?而在千年后彼此纠缠不休。寻找真相的前路步步凶险,他能揭开整件事是鬼神之力亦或是政治之谜?

Line blocks

Your bulge draws my eye
And now it is too awkward
To look at your face

Footnotes

An HTTP GET request [1] is made to the URL.

The result you get back is not plain text—rather, it is JSON [2].

Directives

Tip

Floss every day. It is not enough to just brush!

  • The note contains all indented body elements following.
  • It includes this bullet list.

http://i.giphy.com/xj3Ie4rLNuLSM.gif

Code blocks

brew update
brew install rbenv

rbenv init
rbenv install -l    # see what versions there are
rbven global 2.2.3
def my_function():
    "just a test"
    print 8/2
[1]HTTP GET is a type of web request that is used for retrieving data from a server.
[2]JSON stands for JavaScript Object Notation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment