mark_it_zero 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +19 -0
- data/app/assets/javascripts/mark_it_zero.js +4 -0
- data/app/assets/javascripts/mark_it_zero/mark_it_zero.js +0 -4
- data/app/assets/stylesheets/{mark_it_zero/mark_it_zero.scss → mark_it_zero.scss} +0 -0
- data/lib/mark_it_zero/version.rb +1 -1
- metadata +4 -5
- data/app/assets/javascripts/mark_it_zero/application.js +0 -13
- data/app/assets/stylesheets/mark_it_zero/application.css +0 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 84ba1295e4623b7f6b5663dea6a92639ec6c9e91
|
|
4
|
+
data.tar.gz: 071a5cbae9059a2f42250c8a0db00cf9dec3b9a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 564bd5371edb500ea6f438ffc80d34d8e6585a903d1d55fdc1e7d66f3ea7fd3ba3387d0107be75f8a3081b613a3c56547460cd3f362ad39cd43344f04b9bcff0
|
|
7
|
+
data.tar.gz: 157cfaec592b8e77777e0b199ec08e70a64b528f037db7cca9d7d3b769171d95b38d651baea6b5a5772f3101bad6f8dd1a26a194766b8f57c57fb2d9cec15775
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -39,6 +39,25 @@ They are not dependent on one another, and can be used separately.
|
|
|
39
39
|
|
|
40
40
|
### Markdown Editor
|
|
41
41
|
|
|
42
|
+
To use the markdown editor, first make sure you have the assets included in
|
|
43
|
+
your manifest file.
|
|
44
|
+
|
|
45
|
+
You'll want styles:
|
|
46
|
+
|
|
47
|
+
```scss
|
|
48
|
+
@import 'mark_it_zero';
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
And scripts:
|
|
52
|
+
|
|
53
|
+
```js
|
|
54
|
+
//= require jquery
|
|
55
|
+
//= require mark_it_zero
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
> Note: Mark It Zero! automatically requires jQuery, so if you forget, it
|
|
59
|
+
> will still work fine (magic!).
|
|
60
|
+
|
|
42
61
|
The markdown editor is simple. There's a `markdown` method added onto your form
|
|
43
62
|
object. So, all you have to do is this:
|
|
44
63
|
|
|
File without changes
|
data/lib/mark_it_zero/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mark_it_zero
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean C Davis
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-05-
|
|
11
|
+
date: 2015-05-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -126,15 +126,14 @@ files:
|
|
|
126
126
|
- app/assets/fonts/mark_it_zero/icomoon.svg
|
|
127
127
|
- app/assets/fonts/mark_it_zero/icomoon.ttf
|
|
128
128
|
- app/assets/fonts/mark_it_zero/icomoon.woff
|
|
129
|
-
- app/assets/javascripts/mark_it_zero
|
|
129
|
+
- app/assets/javascripts/mark_it_zero.js
|
|
130
130
|
- app/assets/javascripts/mark_it_zero/editor.js
|
|
131
131
|
- app/assets/javascripts/mark_it_zero/mark_it_zero.js
|
|
132
132
|
- app/assets/javascripts/mark_it_zero/marked.js
|
|
133
|
-
- app/assets/stylesheets/mark_it_zero
|
|
133
|
+
- app/assets/stylesheets/mark_it_zero.scss
|
|
134
134
|
- app/assets/stylesheets/mark_it_zero/custom.scss
|
|
135
135
|
- app/assets/stylesheets/mark_it_zero/editor.scss
|
|
136
136
|
- app/assets/stylesheets/mark_it_zero/icons.scss
|
|
137
|
-
- app/assets/stylesheets/mark_it_zero/mark_it_zero.scss
|
|
138
137
|
- app/helpers/mark_it_zero/editor_helper.rb
|
|
139
138
|
- lib/mark_it_zero.rb
|
|
140
139
|
- lib/mark_it_zero/converts_markdown.rb
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
2
|
-
// listed below.
|
|
3
|
-
//
|
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
5
|
-
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
|
6
|
-
//
|
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
8
|
-
// compiled file.
|
|
9
|
-
//
|
|
10
|
-
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
|
11
|
-
// about supported directives.
|
|
12
|
-
//
|
|
13
|
-
//= require_tree .
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
3
|
-
* listed below.
|
|
4
|
-
*
|
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
|
7
|
-
*
|
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any styles
|
|
10
|
-
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
|
11
|
-
* file per style scope.
|
|
12
|
-
*
|
|
13
|
-
*= require_tree .
|
|
14
|
-
*= require_self
|
|
15
|
-
*/
|