markdowner 0.1.2 → 0.1.3
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/README.md +10 -2
- data/lib/markdowner/engine.rb +3 -0
- data/lib/markdowner/version.rb +1 -1
- data/lib/markdowner.rb +0 -1
- data/vendor/assets/javascripts/markdowner/prism.js +6145 -0
- data/vendor/assets/stylesheets/markdowner/prism.css +204 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af27374e842d8ab8b36303256a4f860821a96f408002d263b2ecd35a6804503b
|
4
|
+
data.tar.gz: bb378abf4a241b6b8c38dd362cd1af7986755528a287e513898fc3169806b465
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d961e166b04b606ddd2657a3ae91a2702c5a67149e20db7c3fec859c42e8197e971623479cec8d2465778a261e67b237e12afb6aaedff593927bd66731e4276
|
7
|
+
data.tar.gz: 9534c59c5dbef6429f61b37fc1d433a43d917550c1bddf1f488bc6b99ac5acb2e27170c3f3f107aad98f41cb5ac5eddc8dd527dfce21f24580900e12aa96d934
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ After installing the gem you can create and use markdown files in your view fold
|
|
8
8
|
|
9
9
|
### Syntax Highlighting
|
10
10
|
|
11
|
-
Markdowner comes with the [prismjs](https://prismjs.com/) library for syntax highlighting. You're free to use any other library you like, skip this section and include your own.
|
11
|
+
Markdowner comes with the [prismjs](https://prismjs.com/) library for syntax highlighting. You're free to use any other library you like, just skip this section and include your own.
|
12
12
|
|
13
13
|
- To enable it add the following to your layout.
|
14
14
|
|
@@ -17,6 +17,14 @@ Markdowner comes with the [prismjs](https://prismjs.com/) library for syntax hig
|
|
17
17
|
<%= javascript_include_tag 'markdowner/prism' %>
|
18
18
|
```
|
19
19
|
|
20
|
+
- Update your `manifest.json`
|
21
|
+
|
22
|
+
```json
|
23
|
+
//= link markdowner/prism.css
|
24
|
+
//= link markdowner/prism.js
|
25
|
+
|
26
|
+
```
|
27
|
+
|
20
28
|
Then in your markdown file you can use the following syntax for code blocks.
|
21
29
|
|
22
30
|
````markdown
|
@@ -32,7 +40,7 @@ your code here
|
|
32
40
|
Add this line to your application's Gemfile:
|
33
41
|
|
34
42
|
```ruby
|
35
|
-
gem "markdowner"
|
43
|
+
gem "markdowner"
|
36
44
|
```
|
37
45
|
|
38
46
|
And then execute:
|
data/lib/markdowner/engine.rb
CHANGED
@@ -14,5 +14,8 @@ module Markdowner
|
|
14
14
|
initializer "markdowner.assets.precompile" do |app|
|
15
15
|
app.config.assets.precompile += %w[markdowner/prism.js markdowner/prism.css]
|
16
16
|
end
|
17
|
+
|
18
|
+
# Add the vendor directory to the load path
|
19
|
+
config.autoload_paths += %W[#{config.root}/vendor]
|
17
20
|
end
|
18
21
|
end
|
data/lib/markdowner/version.rb
CHANGED