emd 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -3
- data/config/initializers/markdown_template_handler.rb +1 -1
- data/lib/emd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73970b7e6e3ffd9a2234e42594313055013aa9c34a8122af6fec40c8a39326e4
|
4
|
+
data.tar.gz: 72f9c4cd5875a3af2ed54d9098711b0d5307e1f706cc60f8ff028aa03656bafa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac1c8c53229940201a9ae56d2fbfd842c7846ab4afee4deb644846f0bbc43cc7a2457ecb9aaf273fe1b7ea71e8747a92fe526f154350f8489725ea6ba1b32627
|
7
|
+
data.tar.gz: 93f34e0bca3bf3127f0a2a8380c30fb0acac128dc5c0230d066f646490983006b9a63a89c498d3e3a7442238c32853d774e278fcdebfafdc7612281fca039d6a
|
data/README.md
CHANGED
@@ -78,10 +78,21 @@ This will turn all the code block into:
|
|
78
78
|
```
|
79
79
|
|
80
80
|
```ruby
|
81
|
-
|
82
|
-
|
83
|
-
|
81
|
+
class Something
|
82
|
+
end
|
83
|
+
```
|
84
|
+
|
85
|
+
Also, you can enable inline code highlighting by adding `code` style to your `index.css`
|
84
86
|
|
87
|
+
```
|
88
|
+
code {
|
89
|
+
background-color: rgba(27,31,35,.1);
|
90
|
+
border-radius: 3px;
|
91
|
+
font-size: 85%;
|
92
|
+
margin: 0;
|
93
|
+
padding: .2em .4em;
|
94
|
+
}
|
95
|
+
```
|
85
96
|
### Control which extensions Redcarpet uses
|
86
97
|
|
87
98
|
`emd` assumes some sane redcarpet extension use (see redcarpets options [here](https://github.com/vmg/redcarpet#and-its-like-really-simple-to-use) and [here](https://github.com/vmg/redcarpet#darling-i-packed-you-a-couple-renderers-for-lunch)). If you need to overwrite these in your Rails app, create a file `config/initializers/markdown_template_handler.rb` to overwrite the defaults from [config/initializers/markdown_template_handler.rb](config/initializers/markdown_template_handler.rb) like this:
|
@@ -16,7 +16,7 @@ module MarkdownTemplateHandler
|
|
16
16
|
def self.call(template)
|
17
17
|
compiled_source = erb.call(template)
|
18
18
|
|
19
|
-
%(Redcarpet::Markdown.new(CodeRayify.new(:filter_html =>
|
19
|
+
%(Redcarpet::Markdown.new(CodeRayify.new(:filter_html => false,
|
20
20
|
:hard_wrap => true),
|
21
21
|
no_intra_emphasis: true,
|
22
22
|
fenced_code_blocks: true,
|
data/lib/emd/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Lim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redcarpet
|