vimwiki_markdown 0.0.3 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b00af17960fc23705d96d60e6dd3ab4036f8b12b
4
- data.tar.gz: 6f6d35477b555f7abf47e6c2cc23291a7ab56252
3
+ metadata.gz: 5bad5c7bc7b30802ecce1b77ec6729512f2f2fb3
4
+ data.tar.gz: 17e3ec405f5fdb919d2bc5c23f02d42fa190e99e
5
5
  SHA512:
6
- metadata.gz: 99fadb55eb3b50e44132e3644da44950b798a23ce6caca3e57f82b4a0b430489250078e438bdf50ce8134cd952e2424a143705bcdf61f1be008d62981f79100c
7
- data.tar.gz: ff30cca42e3ff6c5d741cbd9e2a721438b62163a012d86be2be1bb9de2ab1e96d14dbb349f465452c3a38c3d59010725f628bcb9925c57c3de07c6bf2ddd1722
6
+ metadata.gz: eaf481dbd12e105cec001d6f4d53db0451e33264a8a0ee714260015f2a0312f8decd372ee915a3be010c68593165ee51c5d30e2dfca224e113fdb2acf405842c
7
+ data.tar.gz: 6c4421662f3f06983304599a9bf9cb4fbe19ee389951d9748f61357fb3c65c5ed5e8390d81a285a1687a7e59e2ddd091fd1bc93a43bfaa8fb86319f91f86cc93
data/changelog.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.0.4 [Dec 9th 2014]
2
+ * Use Github::Markup to prerender the markdown
3
+
1
4
  ## 0.0.3 [Oct 30th 2014]
2
5
 
3
6
  * Raise warning if pygments placeholder is not present
@@ -1,3 +1,3 @@
1
1
  module VimwikiMarkdown
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -11,11 +11,11 @@ class VimwikiMarkdown::WikiBody
11
11
  def to_s
12
12
  @markdown_body = get_wiki_markdown_contents
13
13
  fixlinks
14
+ github_markup = GitHub::Markup.render('README.markdown', markdown_body)
14
15
  pipeline = HTML::Pipeline.new [
15
- HTML::Pipeline::MarkdownFilter,
16
16
  HTML::Pipeline::SyntaxHighlightFilter
17
17
  ]
18
- result = pipeline.call(markdown_body)
18
+ result = pipeline.call(github_markup)
19
19
  result[:output].to_s
20
20
  end
21
21
 
@@ -17,5 +17,9 @@ module VimwikiMarkdown
17
17
  expect(wiki_body.to_s).to match(/<a href="books.html">Books<\/a>/)
18
18
  end
19
19
 
20
+ it "must not put a break tag in a blockquote" do
21
+ expect(wiki_body.to_s).not_to match(/blockquote<br>/)
22
+ end
23
+
20
24
  end
21
25
  end
data/spec/spec_helper.rb CHANGED
@@ -104,6 +104,9 @@ def wiki_index_markdown
104
104
  * [[Ruby]]-- useful Ruby Stuff
105
105
  * [[iOS]]-- useful iOS Stuff
106
106
  * [[JavaScript]]-- useful JS Stuff
107
+
108
+ > this is a blockquote
109
+ > without a linebreak
107
110
  "
108
111
  end
109
112
 
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = %q{Converts a vimwiki markdown file to html. It parses [[links]] and has support for syntax highlighting.}
13
13
  spec.homepage = "https://github.com/patrickdavey/wimwiki_markdown"
14
14
  spec.license = "MIT"
15
-
15
+ spec.required_ruby_version = '>= 1.9.3'
16
16
  spec.files = `git ls-files -z`.split("\x0")
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
 
29
29
  spec.add_runtime_dependency "activesupport", "~> 4.1.6"
30
30
  spec.add_runtime_dependency "github-markup", "~> 1.3.0"
31
- spec.add_runtime_dependency "github-markdown", "~> 0.6.7"
31
+ spec.add_runtime_dependency "github-markdown", "~> 0.6.8"
32
32
  spec.add_runtime_dependency "github-linguist", "~> 3.1.5"
33
33
  spec.add_runtime_dependency "redcarpet", "~> 3.1.2"
34
34
  spec.add_runtime_dependency "html-pipeline", "~> 1.11.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vimwiki_markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Davey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-30 00:00:00.000000000 Z
11
+ date: 2014-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 0.6.7
145
+ version: 0.6.8
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 0.6.7
152
+ version: 0.6.8
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: github-linguist
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -234,7 +234,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
234
234
  requirements:
235
235
  - - ">="
236
236
  - !ruby/object:Gem::Version
237
- version: '0'
237
+ version: 1.9.3
238
238
  required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  requirements:
240
240
  - - ">="