docwu 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/lib/docwu/render.rb CHANGED
@@ -37,10 +37,21 @@ module Docwu
37
37
 
38
38
  case marktype
39
39
  when 'markdown'
40
- _mark_options = [:hard_wrap, :autolink, :no_intraemphasis, :fenced_code, :gh_blockcode]
40
+ _mark_options = [:hard_wrap, :autolink, :no_intraemphasis, :fenced_code, :gh_blockcode, :tables]
41
41
 
42
42
  _html = ::RedcarpetCompat.new(content_text, *_mark_options).to_html
43
43
 
44
+ # renderer = Redcarpet::Markdown.new(Redcarpet::Render::HTML, {
45
+ # :tables => true,
46
+ # :hard_wrap => true,
47
+ # :autolink => true,
48
+ # :no_intraemphasis => true,
49
+ # :fenced_code => true,
50
+ # :gh_blockcode => true
51
+ # })
52
+
53
+ # _html = renderer.render(content_text)
54
+
44
55
  # 获取一个html代码的目录结果
45
56
  _catalogs_result = ::Docwu::Utils.html_catalogable(_html)
46
57
 
data/lib/docwu/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Docwu
3
- VERSION = "0.0.11"
3
+ VERSION = "0.0.12"
4
4
  end
@@ -1,3 +1,3 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'docwu', '0.0.11'
3
+ gem 'docwu', '0.0.12'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docwu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-31 00:00:00.000000000 Z
12
+ date: 2013-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redcarpet
@@ -155,7 +155,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  segments:
157
157
  - 0
158
- hash: 3950068511084363584
158
+ hash: 99893025008064787
159
159
  required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  segments:
166
166
  - 0
167
- hash: 3950068511084363584
167
+ hash: 99893025008064787
168
168
  requirements: []
169
169
  rubyforge_project:
170
170
  rubygems_version: 1.8.25