lalala 4.0.0.dev.239 → 4.0.0.dev.240
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/lalala/modules/_editor-cheatsheet.css.scss +30 -2
- data/app/assets/stylesheets/lalala/modules/_editor-preview.css.scss +18 -1
- data/app/views/lalala/markdown/cheatsheet.html.erb +53 -87
- data/lib/lalala/version.rb +1 -1
- data/test/dummy/app/pages/application_page.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0951666ef51b83946343af279cd8d2c86804e916
|
4
|
+
data.tar.gz: da78d746c23abe740ad152bbd93ac72855080927
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09e7cea2c417de99138951ca71c76983d40d248d539298cceb5f22784fb788db09d98c2989c49861dd70c2b5040dce9829635e8e2912df75784a0a5e1870a81d
|
7
|
+
data.tar.gz: 3e849a42f10f3d7b50aad11d488672a0dbd5eee8cb415d4dc5af3038203c7bdf3399853a17bab5e71d34972bc85333a85bede9badda244920e931d42fd717ee6
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#markdown-cheatsheet {
|
2
|
-
@include box-shadow();
|
2
|
+
@include box-shadow(0 0 10px gray(100));
|
3
3
|
background-color: rgba(255,255,255, 0.95);
|
4
4
|
bottom: 0;
|
5
5
|
overflow: auto;
|
@@ -9,9 +9,37 @@
|
|
9
9
|
top: 0;
|
10
10
|
z-index: 230;
|
11
11
|
|
12
|
+
h2 {
|
13
|
+
font-size: 16px;
|
14
|
+
font-weight: bold;
|
15
|
+
line-height: 1.5em;
|
16
|
+
margin: 1em 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
h3 {
|
20
|
+
border-bottom: 1px solid rgb(200,200,200);
|
21
|
+
font-size: 14px;
|
22
|
+
font-weight: bold;
|
23
|
+
line-height: 2em;
|
24
|
+
margin: 1em 0;
|
25
|
+
}
|
26
|
+
|
27
|
+
p {
|
28
|
+
margin: 0 0 1em 0;
|
29
|
+
}
|
30
|
+
|
12
31
|
pre {
|
13
32
|
background-color: rgb(240,240,240);
|
14
|
-
|
33
|
+
font-family: Monaco, monospace;
|
34
|
+
font-size: 12px;
|
35
|
+
line-height: 1.5em;
|
36
|
+
margin: 0 0 1em 0;
|
37
|
+
padding: 10px;
|
38
|
+
|
39
|
+
& + h3 {
|
40
|
+
margin-top: 2em;
|
41
|
+
}
|
42
|
+
|
15
43
|
}
|
16
44
|
|
17
45
|
}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
html,
|
3
2
|
body {
|
4
3
|
font-family: helvetica, arial, sans-serif;
|
@@ -21,3 +20,21 @@ td {
|
|
21
20
|
border: 1px solid rgb(200,200,200);
|
22
21
|
padding: 3px 10px;
|
23
22
|
}
|
23
|
+
|
24
|
+
blockquote {
|
25
|
+
position: relative;
|
26
|
+
|
27
|
+
&:before {
|
28
|
+
content: open-quote;
|
29
|
+
left: -10px;
|
30
|
+
position: absolute;
|
31
|
+
top: -10px;
|
32
|
+
}
|
33
|
+
|
34
|
+
}
|
35
|
+
|
36
|
+
pre,
|
37
|
+
code {
|
38
|
+
background-color: rgb(240,240,240);
|
39
|
+
padding: 10px;
|
40
|
+
}
|
@@ -1,137 +1,103 @@
|
|
1
|
-
<h2>
|
1
|
+
<h2>Markdown Cheatsheet:</h2>
|
2
2
|
|
3
|
-
<
|
3
|
+
<a href="http://daringfireball.net/projects/markdown/syntax" target="_blank">
|
4
|
+
See full documentation
|
5
|
+
</a>
|
4
6
|
|
5
|
-
<
|
6
|
-
_italic_ __bold__
|
7
|
-
</code></pre>
|
8
|
-
|
9
|
-
<h3>Links</h3>
|
7
|
+
<h3>Emphasis</h3>
|
10
8
|
|
11
|
-
<
|
12
|
-
|
13
|
-
|
9
|
+
<pre>
|
10
|
+
_italic_
|
11
|
+
**bold**
|
14
12
|
</code></pre>
|
15
13
|
|
16
|
-
<
|
17
|
-
|
18
|
-
<pre><code>An [example][id]. Then, anywhere
|
19
|
-
else in the doc, define the link:
|
14
|
+
<h3>Links</h3>
|
20
15
|
|
21
|
-
|
22
|
-
|
16
|
+
<pre>
|
17
|
+
An [example](http://url.com/ "Title")
|
18
|
+
</pre>
|
23
19
|
|
24
20
|
<h3>Images</h3>
|
25
21
|
|
26
22
|
<p>Inline (titles are optional):</p>
|
27
23
|
|
28
|
-
<pre
|
29
|
-
|
30
|
-
|
31
|
-
<p>Reference-style:</p>
|
32
|
-
|
33
|
-
<pre><code>![alt text][id]
|
34
|
-
|
35
|
-
[id]: /url/to/img.jpg "Title"
|
36
|
-
</code></pre>
|
24
|
+
<pre>
|
25
|
+
![alt text](/path/img.jpg "Title")
|
26
|
+
</pre>
|
37
27
|
|
38
28
|
<h3>Headers</h3>
|
39
29
|
|
40
|
-
<
|
41
|
-
|
42
|
-
<pre><code>Header 1
|
43
|
-
========
|
44
|
-
|
45
|
-
Header 2
|
46
|
-
--------
|
47
|
-
</code></pre>
|
48
|
-
|
49
|
-
<p>atx-style (closing #'s are optional):</p>
|
50
|
-
|
51
|
-
<pre><code># Header 1 #
|
30
|
+
<pre>
|
31
|
+
# Header 1 #
|
52
32
|
|
53
33
|
## Header 2 ##
|
54
34
|
|
55
35
|
###### Header 6
|
56
|
-
</
|
36
|
+
</pre>
|
57
37
|
|
58
38
|
<h3>Lists</h3>
|
59
39
|
|
60
|
-
<p>Ordered
|
61
|
-
|
62
|
-
<pre><code>1. Foo
|
63
|
-
2. Bar
|
64
|
-
</code></pre>
|
65
|
-
|
66
|
-
<p>Unordered, with paragraphs:</p>
|
40
|
+
<p>Ordered:</p>
|
67
41
|
|
68
|
-
<pre
|
42
|
+
<pre>
|
43
|
+
1. Foo
|
44
|
+
2. Bar
|
45
|
+
</pre>
|
69
46
|
|
70
|
-
|
47
|
+
<p>Unordered:</p>
|
71
48
|
|
72
|
-
|
73
|
-
|
49
|
+
<pre>
|
50
|
+
* Foo
|
51
|
+
* Bar
|
52
|
+
</pre>
|
74
53
|
|
75
54
|
<p>You can nest them:</p>
|
76
55
|
|
77
|
-
<pre
|
78
|
-
|
79
|
-
*
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
*
|
56
|
+
<pre>
|
57
|
+
* Foo
|
58
|
+
* Bar
|
59
|
+
* Bubbles
|
60
|
+
1. bunk
|
61
|
+
2. bupkis
|
62
|
+
3. burper
|
63
|
+
* Warper
|
85
64
|
</code></pre>
|
86
65
|
|
87
66
|
<h3>Blockquotes</h3>
|
88
67
|
|
89
|
-
<pre
|
90
|
-
|
91
|
-
|
92
|
-
> > And, they can be nested.
|
93
|
-
|
94
|
-
> #### Headers in blockquotes
|
95
|
-
>
|
96
|
-
> * You can quote a list.
|
97
|
-
> * Etc.
|
98
|
-
</code></pre>
|
99
|
-
|
100
|
-
<h3>Code Spans</h3>
|
68
|
+
<pre>
|
69
|
+
> This is a quote
|
70
|
+
</pre>
|
101
71
|
|
102
|
-
<
|
103
|
-
by backticks.
|
72
|
+
<h3>Code</h3>
|
104
73
|
|
105
|
-
|
106
|
-
|
107
|
-
</
|
74
|
+
<pre>
|
75
|
+
`` Look mom, I'm programming! ``
|
76
|
+
</pre>
|
108
77
|
|
109
78
|
<h3>Preformatted Code Blocks</h3>
|
110
79
|
|
111
80
|
<p>Indent every line of a code block by at least 4 spaces or 1 tab.</p>
|
112
81
|
|
113
|
-
<pre
|
82
|
+
<pre>
|
83
|
+
This is a normal paragraph.
|
114
84
|
|
115
85
|
This is a preformatted
|
116
86
|
code block.
|
117
|
-
</
|
87
|
+
</pre>
|
118
88
|
|
119
89
|
<h3>Horizontal Rules</h3>
|
120
90
|
|
121
|
-
<
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
* * *
|
126
|
-
|
127
|
-
- - - -
|
128
|
-
</code></pre>
|
91
|
+
<pre>
|
92
|
+
---
|
93
|
+
</pre>
|
129
94
|
|
130
95
|
<h3>Manual Line Breaks</h3>
|
131
96
|
|
132
97
|
<p>End a line with two or more spaces:</p>
|
133
98
|
|
134
|
-
<pre
|
135
|
-
|
136
|
-
|
99
|
+
<pre>
|
100
|
+
Roses are red,
|
101
|
+
Violets are blue.
|
102
|
+
</pre>
|
137
103
|
</div>
|
data/lib/lalala/version.rb
CHANGED