markdown_doctor 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -19,3 +19,7 @@ Try putting this in your `.vimrc`:
19
19
 
20
20
  " Quickly display a markdown preview of the current buffer
21
21
  :map <leader>m :%w ! markdown_doctor \| bcat<CR><CR>
22
+
23
+ Installation:
24
+
25
+ $ gem install markdown_doctor
data/bin/markdown_doctor CHANGED
@@ -22,6 +22,7 @@ FOOTER = <<EOF
22
22
  EOF
23
23
 
24
24
  text = ARGF.read
25
- markdown = Redcarpet.new(text, :fenced_code)
26
- output = HEADER + markdown.to_html + FOOTER
25
+ markdown_options = { :tables => true, :fenced_code_blocks => true, :space_after_headers => true }
26
+ markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, markdown_options)
27
+ output = HEADER + markdown.render(text) + FOOTER
27
28
  puts output
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "markdown_doctor"
3
- s.version = "0.1.0"
3
+ s.version = "0.2.0"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">=0") if s.respond_to? :required_rubygems_version=
6
6
  s.specification_version = 2 if s.respond_to? :specification_version=
@@ -19,5 +19,5 @@ Gem::Specification.new do |s|
19
19
  markdown_doctor.gemspec
20
20
  bin/markdown_doctor
21
21
  )
22
- s.add_dependency("redcarpet", ">=1.13.1")
22
+ s.add_dependency("redcarpet", ">= 2.0.0b5")
23
23
  end
metadata CHANGED
@@ -1,71 +1,62 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: markdown_doctor
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
4
5
  prerelease:
5
- version: 0.1.0
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Daniel MacDougall
9
9
  - Caleb Spare
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
-
14
- date: 2011-05-11 00:00:00 -07:00
15
- default_executable:
16
- dependencies:
17
- - !ruby/object:Gem::Dependency
13
+ date: 2011-09-29 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
18
16
  name: redcarpet
19
- prerelease: false
20
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &70246950414780 !ruby/object:Gem::Requirement
21
18
  none: false
22
- requirements:
23
- - - ">="
24
- - !ruby/object:Gem::Version
25
- version: 1.13.1
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: 2.0.0b5
26
23
  type: :runtime
27
- version_requirements: *id001
24
+ prerelease: false
25
+ version_requirements: *70246950414780
28
26
  description: An absurdly simple script for rendering markdown with github styles.
29
- email:
27
+ email:
30
28
  - dmacdougall@gmail.com
31
29
  - cespare@gmail.com
32
- executables:
30
+ executables:
33
31
  - markdown_doctor
34
32
  extensions: []
35
-
36
33
  extra_rdoc_files: []
37
-
38
- files:
34
+ files:
39
35
  - README.md
40
36
  - markdown_doctor.gemspec
41
37
  - bin/markdown_doctor
42
- has_rdoc: true
43
38
  homepage: https://github.com/dmacdougall/markdown_doctor
44
39
  licenses: []
45
-
46
40
  post_install_message:
47
41
  rdoc_options: []
48
-
49
- require_paths:
42
+ require_paths:
50
43
  - lib
51
- required_ruby_version: !ruby/object:Gem::Requirement
44
+ required_ruby_version: !ruby/object:Gem::Requirement
52
45
  none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: "0"
57
- required_rubygems_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ! '>='
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
51
  none: false
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: "0"
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
63
56
  requirements: []
64
-
65
57
  rubyforge_project: markdown_doctor
66
- rubygems_version: 1.6.2
58
+ rubygems_version: 1.8.10
67
59
  signing_key:
68
60
  specification_version: 2
69
61
  summary: An absurdly simple script for rendering markdown with github styles.
70
62
  test_files: []
71
-