oo2md2tex 0.0.5 → 0.0.6
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 +4 -4
- data/bin/md2tex +2 -3
- data/lib/markdown_to_tex/processor.rb +10 -7
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 79c994c4cb4cc214328ea52340d0694e362962ae
|
|
4
|
+
data.tar.gz: 3094a0adf5fc200adccf07c98d2554c6525abac7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 80e21bda3440f3b0fd334b3270992a6c74eecfb6361b5fab312153cb12f2223405a922570d6688cf5b3a839b26655aac6810805e07caa6608e24a06825142983
|
|
7
|
+
data.tar.gz: 957bc097b49e1dd587ad479343097c806248ffecc58cef466990de1497fb63d4d60a0a4413d92df71a4bcee1253ed9f7ad4e8b70dd0428ea9a828313eae8f3a6
|
data/bin/md2tex
CHANGED
|
@@ -30,12 +30,13 @@ require 'markdown_to_tex'
|
|
|
30
30
|
#####
|
|
31
31
|
|
|
32
32
|
opts = {
|
|
33
|
-
:git =>
|
|
33
|
+
:git => false
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
ARGV.options do |o|
|
|
37
37
|
o.banner = "#{$0} [options] [Markdown_File(s)]"
|
|
38
38
|
o.separator "Options:"
|
|
39
|
+
o.on("--git", "-g", "without running git") { opts[:git] = true }
|
|
39
40
|
o.on("--no-git", "-G", "without running git") { opts[:git] = false }
|
|
40
41
|
o.parse!
|
|
41
42
|
end
|
|
@@ -52,9 +53,7 @@ puts all
|
|
|
52
53
|
all.gsub!(/%.*/, '')
|
|
53
54
|
all.gsub!(/\s+/, ' ')
|
|
54
55
|
all.gsub!(/\\(begin|end){[^}]+}/, '')
|
|
55
|
-
#all.gsub!(/\\(LL|REP|DEL|REPX|DELX)[^}]+/, '')
|
|
56
56
|
all.gsub!(/\\([A-Za-z]+)/, '')
|
|
57
|
-
#all.gsub!(/L:[A-Za-z1-9]+/, '')
|
|
58
57
|
all.gsub!(/\s+/, '')
|
|
59
58
|
all.gsub!(/\{|\}/, '')
|
|
60
59
|
puts "% Text length: #{all.size} chars"
|
|
@@ -70,13 +70,16 @@ module MarkdownToTeX
|
|
|
70
70
|
TextProcessor.process_final(@renderer.render(text), @macros)
|
|
71
71
|
end
|
|
72
72
|
|
|
73
|
-
def job_signature
|
|
74
|
-
|
|
75
|
-
%
|
|
76
|
-
%
|
|
77
|
-
%
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
def job_signature
|
|
74
|
+
s = []
|
|
75
|
+
s << "% md2tex run at #{@run_stamp}"
|
|
76
|
+
s << "% description: #{@git_describe}" if @git_describe
|
|
77
|
+
s << "% revision: #{@git_wd_hash_long}" if @git_wd_hash_long
|
|
78
|
+
if @git_commit_line
|
|
79
|
+
s << "% commit log:"
|
|
80
|
+
s << "% #{@git_commit_line}"
|
|
81
|
+
end
|
|
82
|
+
s.join("\n")+"\n"
|
|
80
83
|
end
|
|
81
84
|
|
|
82
85
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: oo2md2tex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shigeya Suzuki
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-12-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: redcarpet
|
|
@@ -76,9 +76,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
76
76
|
version: '0'
|
|
77
77
|
requirements: []
|
|
78
78
|
rubyforge_project:
|
|
79
|
-
rubygems_version: 2.
|
|
79
|
+
rubygems_version: 2.1.11
|
|
80
80
|
signing_key:
|
|
81
81
|
specification_version: 4
|
|
82
82
|
summary: oo2text and md2tex
|
|
83
83
|
test_files: []
|
|
84
|
-
has_rdoc:
|