markdown_views 2.1.2 → 2.1.3

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: 28a2126be795fb88f32731b85c5fbdede07be1f7599497a8b9dead6d1c777050
4
- data.tar.gz: 764aa9f22d74e6bccaeabbbd091821d9bdf17ec9bb94e495fa8acf8eb233ac20
3
+ metadata.gz: 5df0161956a6cf0a692de3844b8eaabd3839c63a3efeb00e4b5253f4003f0339
4
+ data.tar.gz: 1a297c19d39d6a69d5111dae58fe7625117a9c2615d52a928a9b68e93d73ddf2
5
5
  SHA512:
6
- metadata.gz: 2ba620b6720c78b88c368952af15fd7fca3b04ef0c653646e803c339b9a30be5d2bc3b6b15d46496250edcd09f05a792e9ff3c994dd8b31b45116120d320858f
7
- data.tar.gz: 95a238c3c16111c483b49f7e8f7651600c326626d62266b9a903adf8d2dbe3c2daa9b8f5961a42d583f2b324cee1fa790a0b7fdff57ebdb0704b8c126f8cdb68
6
+ metadata.gz: f51a26f78fa1e5c559cf7e84e13106bdbbb42e9fc9faa70a29de76bb69a9af277fd0f658b2a4301831c1e619803d05c8bc824e5f1a138d721677a4868e4cc035
7
+ data.tar.gz: 33f92ccec6e6c8c3d4134c77fd2fe162b5216703cd797e3d188080a1a989a844abacd22ba865a2d345a577d3df7b94b81725f121ad8e8fdf1159d29247ca68ef
@@ -4,9 +4,9 @@ module MarkdownViews
4
4
 
5
5
  def render(template)
6
6
  out = template.to_s
7
- strip_comments!(out) if MarkdownViews.strip_comments
7
+ out = strip_comments(out) if MarkdownViews.strip_comments
8
8
  out = render_md(out)
9
- strip_comments!(out) if MarkdownViews.strip_comments
9
+ out = strip_comments(out) if MarkdownViews.strip_comments
10
10
  out.html_safe
11
11
  end
12
12
 
@@ -24,8 +24,8 @@ module MarkdownViews
24
24
  MarkdownViews.rouge_opts[:formatter] || Rouge::Formatters::HTML.new
25
25
  end
26
26
 
27
- def strip_comments!(input)
28
- input.gsub!(/[ \t\r\n\f]*<!--(.*?)-->*/m, '')
27
+ def strip_comments(input)
28
+ input.gsub(/[ \t\r\n\f]*<!--(.*?)-->*/m, '')
29
29
  end
30
30
 
31
31
  def transform_code_blocks(doc)
@@ -1,3 +1,3 @@
1
1
  module MarkdownViews
2
- VERSION = '2.1.2'
2
+ VERSION = '2.1.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown_views
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - thomas morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-08 00:00:00.000000000 Z
11
+ date: 2019-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commonmarker