extended-markdown-filter 0.4.7 → 0.4.8

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
  SHA1:
3
- metadata.gz: 5fbd677ca783661a274b905b28823a0f3caa7ab0
4
- data.tar.gz: 01b74dc9163510f34cf772043b778b8b22e9c6f6
3
+ metadata.gz: 0ed630aabf92fd69bb4a2228f8886acaba38af4d
4
+ data.tar.gz: 11c128ede5f997c47835cd24a9885291cfdc47df
5
5
  SHA512:
6
- metadata.gz: 05317b1c16e27dbd2523980fa5861e8b7147a7b435144faf879ef25f0dd983284fb07c51dd3a2789b2eb00b9a5cc8213fb530c5deaa5824bd4d910315af68f79
7
- data.tar.gz: e25e070dbac753840d2e9594aef9282ceebdf0bb3a515455d35e5a3c4e243b94aab8856ef6be2b5accf23b7c1afad4048f7aca65718db49eda830ed04245e896
6
+ metadata.gz: 5dc27bd51a664276ce79ba8da6513feddd01622770b5a0cdcf89289d273665f1908fd512f457f6c74c276e7fb50af6c3764ca2f0741a17fc1eef24551315bfda
7
+ data.tar.gz: 0c7f04a5176fa023395c906a45b89398784b5fd369089664fb76700ff0564542d30289ea5cb0bdd60e51e613cc86c4ef7f4b7707fda9af1ed04cdd16c14619ee
data/.travis.yml CHANGED
@@ -1,8 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0
4
- - 2.1
5
- - 2.2
3
+ - 2.2.2
4
+ - 2.3.3
5
+ - 2.4.0
6
6
 
7
7
  sudo: false
8
8
  cache: bundler
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "extended-markdown-filter"
3
- spec.version = "0.4.7"
3
+ spec.version = "0.4.8"
4
4
  spec.authors = ["Garen Torikian"]
5
5
  spec.email = ["gjtorikian@gmail.com"]
6
6
  spec.summary = %q{Add extended markup syntax to the HTML::Pipeline}
@@ -1,7 +1,7 @@
1
1
  module Filters
2
2
  module PreFilter
3
3
  def format_command_line(text)
4
- text.gsub /\n?\s*``` command-line(.+?)```/m do |block|
4
+ text.gsub /^\n?\s*``` command-line(.+?)```/m do |block|
5
5
  block.gsub! /^\s*``` command-line/, '<pre class="command-line">'
6
6
  block.gsub! /^\s*```$/, "</pre>\n"
7
7
  block.gsub!(/^\s*\$ (.+)$/) { %(<span class="command">#{$1.rstrip}</span>) }
@@ -1,6 +1,10 @@
1
+ # Header
2
+
1
3
  ``` command-line
2
4
  $ git remote add origin https://github.com/<em>user</em>/<em>repo</em>.git
3
5
  # Set a new remote
4
6
  > origin https://github.com/user/repo.git
5
7
  $ git remote add -f spoon-knife git@github.com:octocat/Spoon-Knife.git
6
8
  ```
9
+
10
+ next paragraph
@@ -1,6 +1,10 @@
1
+ # Header
2
+
1
3
  ``` command-line
2
4
  $ git remote add origin https://github.com/<em>user</em>/<em>repo</em>.git
3
5
  # Set a new remote
4
6
  > origin https://github.com/user/repo.git
5
7
  $ git remote add -f spoon-knife git@github.com:octocat/Spoon-Knife.git
6
8
  ```
9
+
10
+ next paragraph
@@ -16,6 +16,7 @@ class HTML::Pipeline::ExtendedMarkdownFilterTest < Minitest::Test
16
16
  assert_equal 1, doc.css('span.output').size
17
17
 
18
18
  assert_equal 0, doc.css('.command-line a').size
19
+ refute_equal 0, doc.css('pre').inner_text.length
19
20
  end
20
21
 
21
22
  def test_command_line_indented
@@ -29,6 +30,7 @@ class HTML::Pipeline::ExtendedMarkdownFilterTest < Minitest::Test
29
30
  assert_equal 1, doc.css('span.output').size
30
31
 
31
32
  assert_equal 0, doc.css('.command-line a').size
33
+ refute_equal 0, doc.css('pre').inner_text.length
32
34
  end
33
35
 
34
36
  def test_helper
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extended-markdown-filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-26 00:00:00.000000000 Z
11
+ date: 2017-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: html-pipeline