//renren-markdown test //第二次: 编辑测试 这是@钟音.git(261213653) 巨巨写的renren-markdown, 我来体验下. 代码在此处, Chrome下安装至Tampermonkey即可, 同时也希望大家积极参与贡献该项目(fork it!). 本文的markdown源码在此处. 在本文的最后, 也有本文的源码(好像点搞出无尽的递归).
下面测试开始
内容
内容
内容
内容
内容
内容
Foo | Foo |
Foo | Foo |
Foo | Foo |
Foo | Foo |
分割线
分割线
分割线
分割线
分割线
Markdown 标记区块引用是使用类似 email 中用 > 的引用方式。如果你还熟悉在 email 信件中的引言部分,你就知道怎么在 Markdown 文件中建立一个区块引用,那会看起来像是你自己先断好行,然后在每行的最前面加上 > :
This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
Markdown 也允许你偷懒只在整个段落的第一行最前面加上 > :
This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
区块引用可以嵌套(例如:引用内的引用),只要根据层次加上不同数量的 > :
This is the first level of quoting.
This is nested blockquote.
Back to the first level.
引用的区块内也可以使用其他的 Markdown 语法,包括标题、列表、代码区块等:
- 这是第一行列表项。
- 这是第二行列表项。
给出一些例子代码:
return shell_exec("echo $input | $markdown_script");
任何像样的文本编辑器都能轻松地建立 email 型的引用。例如在 BBEdit 中,你可以选取文字后然后从选单中选择增加引用阶层。
- Red
- Green
- Blue
- Red
- Green
- Blue
- Red
- Green
- Blue
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
- Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
-
Bird
-
McHale
-
Parish
-
This is a list item with two paragraphs.
This is the second paragraph in the list item. You're
only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
- Another item in the same list.
一句话以内的代码printf("%d\n",result);
.
一句话以内的代码printf("%d\n",result);
.
整段代码:
#include int main(void) { printf("hello, world\n"); return 0; }
#include<stdio.h>
int main(void)
{
printf("hello, world\n");
return 0;
}
This is an example inline link.
This link has no title attribute.
This is an example reference-style link.
single asterisks
single underscores
double asterisks
double underscores
renren-markdown的作者为@钟音.git(261213653) .
这是一个式子:
$$$
J_\alpha(x) = \sum\limits_{m=0}^\infty \frac{(-1)^m}{m! , \Gamma(m + \alpha + 1)}{\left({\frac{x}{2}}\right)}^{2 m + \alpha}
$$$
洛伦兹变换:
$$$
\begin{aligned}
\dot{x} & = \sigma(y-x) \
\dot{y} & = \rho x - y - xz \
\dot{z} & = -\beta z + xy
\end{aligned}
$$$
The Cauchy-Schwarz Inequality:
$$$
\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
$$$
A Cross Product Formula:
$$$
\mathbf{V}_1 \times \mathbf{V}2 = \begin{vmatrix}
\mathbf{i} & \mathbf{j} & \mathbf{k} \
\frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \
\frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0
\end{vmatrix}
$$$
The probability of getting k heads when flipping n coins is:
$$$
P(E) = {n \choose k} p^k (1-p)^{ n-k}
$$$
An Identity of Ramanujan:
$$$
\frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =
1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
{1+\frac{e^{-8\pi}} {1+\ldots} } } }
$$$
A Rogers-Ramanujan Identity:
$$$
1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots =
\prod{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})},
\quad\quad \text{for
本文源码: