forked from adam-p/markdown-here
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmd-for-screenshot.md.txt
36 lines (26 loc) · 1.07 KB
/
md-for-screenshot.md.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
## Sweet Screenshot Markdown
*Markdown Here* is a Google Chrome, Firefox, and Thunderbird extension that lets you write email in Markdown and render it before sending.
* Markdown is **cool**. Put `code inline`.
* Link to stuff, like [this project](https://github.com/adam-p/markdown-here).
* Ordered, you say? **And** a sub-list?
1. Done.
2. And done.
Actual review quote:
> Does exactly what I need it to do. Markdown support in email without getting in the way.
### Syntax highlighting: super rad
Some JavaScript:
```javascript
alert('Hello Markdown');
```
How about an unusual example -- a 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);
```