tocmd 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/tocmd +8 -8
- data/lib/mdpreview/markdown_render.rb +0 -0
- data/lib/mdpreview/translator.rb +1 -1
- data/lib/mdpreview/version.rb +1 -1
- data/lib/mdpreview.rb +0 -0
- data/test/mdptest.rb +0 -0
- data/vendor/meta.js +1 -1
- data/vendor/template.html +0 -0
- data/vendor/toc/js/ztree_toc.js +0 -0
- data/vendor/toc/js/ztree_toc.min.js +0 -0
- data/vendor/toc/style/GitHub.css +0 -0
- data/vendor/toc/style/github-bf51422f4bb36427d391e4b75a1daa083c2d840e.css +0 -0
- data/vendor/toc/style/github2-d731afd4f624c99a4b19ad69f3083cd6d02b81d5.css +0 -0
- data/vendor/toc/style/makedownpad.css +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 109a4c0dc5885399edc06e72661467d090ae6bf7
|
4
|
+
data.tar.gz: 1566a9f798490a6faacf28ed70c1bbc47991eba9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aacef7840091f74199486f89a1081e9fb48d4f83607a82250ec67e3623aebb0ce62351a023f828c5af722a79d8d99f259f14e0dd63dfb79077ff4d9034cd9e04
|
7
|
+
data.tar.gz: 5fbdfcfc063dc21ed0e1d99039d35a9725c3a728f58edff4c2618f44dc79ba0b78355fc3155a8ce59833d934dca830552a2bda242845a683b6c02b4890907b10
|
data/bin/tocmd
CHANGED
@@ -47,14 +47,14 @@ option_parser = OptionParser.new do |opts|
|
|
47
47
|
ensure
|
48
48
|
end
|
49
49
|
|
50
|
-
begin
|
51
|
-
|
52
|
-
rescue
|
53
|
-
ensure
|
54
|
-
|
55
|
-
|
56
|
-
end
|
57
|
-
|
50
|
+
# begin
|
51
|
+
# Dir.mkdir(File.join(src_p ,".toc"), 0700) #=> 0
|
52
|
+
# rescue
|
53
|
+
# ensure
|
54
|
+
# f = File.new(File.join(vendor_path ,"template.html"), "w+").path
|
55
|
+
# FileUtils.cp(f ,File.join(src_p ,".toc"))
|
56
|
+
# end
|
57
|
+
#
|
58
58
|
|
59
59
|
# Option 作为flag,带argument,用于将argument作为数值解析,比如"name"信息
|
60
60
|
#下面的“value”就是用户使用时输入的argument
|
File without changes
|
data/lib/mdpreview/translator.rb
CHANGED
@@ -133,7 +133,7 @@ class Mdpreview::Translator
|
|
133
133
|
# options = [:fenced_code,:generate_toc,:hard_wrap,:no_intraemphasis,:strikethrough,:gh_blockcode,:autolink,:xhtml,:tables]
|
134
134
|
|
135
135
|
# convert to html
|
136
|
-
markdown = Redcarpet::Markdown.new(HTMLwithPygments,:gh_blockcode=>true,:no_intra_emphasis=>true,:filter_html => true,:hard_wrap => true,:autolink => true, :space_after_headers => true,:fenced_code_blocks => true)
|
136
|
+
markdown = Redcarpet::Markdown.new(HTMLwithPygments,:gh_blockcode=>true,:no_intra_emphasis=>true,:filter_html => true,:hard_wrap => true,:autolink => true, :space_after_headers => true,:fenced_code_blocks => true,:tables => true)
|
137
137
|
parse_markdown = markdown.render(text)
|
138
138
|
# parse_markdown = syntax_highlighter(parse_markdown)
|
139
139
|
|
data/lib/mdpreview/version.rb
CHANGED
data/lib/mdpreview.rb
CHANGED
File without changes
|
data/test/mdptest.rb
CHANGED
File without changes
|
data/vendor/meta.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
/Volumes/
|
1
|
+
/Volumes/XP/git/tocmd.gem/README.md
|
data/vendor/template.html
CHANGED
File without changes
|
data/vendor/toc/js/ztree_toc.js
CHANGED
File without changes
|
File without changes
|
data/vendor/toc/style/GitHub.css
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tocmd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- shiren1118
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: convert markdown to html with toc plugin
|
14
14
|
email:
|