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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e66aeb72d6524a402d6ae0e0c358c242db505bd81454cec6b691b3389be9e0f
4
- data.tar.gz: 617d76dcac2415626e8741ec5d82bb9c2f605d9cb26913270319ec9c404931d6
3
+ metadata.gz: 73970b7e6e3ffd9a2234e42594313055013aa9c34a8122af6fec40c8a39326e4
4
+ data.tar.gz: 72f9c4cd5875a3af2ed54d9098711b0d5307e1f706cc60f8ff028aa03656bafa
5
5
  SHA512:
6
- metadata.gz: 52048091556900764629114ec23a354eaecf2450ca1eeb93f3e523e753097eb73a1c3f6a0699a7df807d856ea6398f2907d97d4dbed47e8608863e02a31a5c50
7
- data.tar.gz: ea1ce9268f980bff0ca8067fc024a118eb0745fbaa16f13fa06fb2591490cc43c55b2a175285869154323f0d9739ab5f43da65668cd700757cf6fddbab89f47a
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
- class Something
82
- end
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 => true,
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
@@ -1,3 +1,3 @@
1
1
  module Emd
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
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.1
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-18 00:00:00.000000000 Z
11
+ date: 2019-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redcarpet