pagedown-rails 1.0.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.
- data/README.md +26 -0
- data/lib/pagedown/rails/engine.rb +6 -0
- data/lib/pagedown/rails/version.rb +5 -0
- data/lib/pagedown/rails.rb +2 -0
- data/lib/pagedown-rails.rb +1 -0
- data/vendor/assets/javascripts/markdown.converter.js +1332 -0
- data/vendor/assets/javascripts/markdown.editor.js +2160 -0
- data/vendor/assets/javascripts/markdown.sanitizer.js +108 -0
- metadata +71 -0
data/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# pagedown-rails
|
|
2
|
+
|
|
3
|
+
[PageDown](https://code.google.com/p/pagedown/) for the Rails asset pipeline.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Add this line to the assets group in your Gemfile:
|
|
8
|
+
|
|
9
|
+
```ruby
|
|
10
|
+
gem 'pagedown-rails'
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Add the necessary libraries to `app/assets/javascripts/application.js`:
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
//= require markdown.converter
|
|
17
|
+
//= require markdown.sanitizer
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## What's included?
|
|
21
|
+
|
|
22
|
+
* markdown.converter
|
|
23
|
+
* markdown.sanitizer
|
|
24
|
+
* markdown.editor
|
|
25
|
+
|
|
26
|
+
Copyright Richard Hubers, released under the MIT License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require 'pagedown/rails'
|