## Markdown片段预览

*Markdown Here* 是一款谷歌Chrome，Firefox以及Thunderbird的插件，能够让你用Markdown格式写电子邮件并且在发送前检测它。

* Markdown 是**非常酷**的。 把`代码放在行内`。
* 给文本添加链接， 比如[这个项目](https://github.com/adam-p/markdown-here)。
* 有序列表，看见了吗？ **同时**一个子列表？
  1. 完成。
  2. 再次完成。

实际引用的一个回顾：

> 做我需要做的。 Markdown支持在不妨碍您的情况下在电子邮件内使用。

### 语法高亮: super rad

JavaScript代码：

```javascript
alert('你好，Markdown');
```

那么一个不寻常点的例子 -- 一个diff：

```diff
diff --git a/src/common/markdown-here.js b/src/common/markdown-here.js
index 24dcb97..20c36a1 100644
--- a/src/common/markdown-here.js
+++ b/src/common/markdown-here.js
@@ -201,12 +179,14 @@ function makeStylesExplicit(wrapperElem, css) {
-        applyStyleToElement(rule.style, selectorMatches[j]);
+        styleAttr = selectorMatches[j].getAttribute('style') || '';
+        styleAttr += rule.style.cssText;
+        selectorMatches[j].setAttribute('style', styleAttr);
```

