oo2md2tex 0.0.4 → 0.0.5
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 +7 -0
- data/Format.md +10 -0
- data/bin/oo2text +6 -0
- metadata +7 -13
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 4d3b966b8c97583dca3b3fbf5ca452afe1efb045
|
|
4
|
+
data.tar.gz: c938e1965dadf793e842779c9df5ffeff5e31131
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 80fdb07c35a96cab27ae72dbdc2522330fde940e42e2a8a2dd32bec32abc8fe6a494b367e805aaa0220dbb0fa1cd17a61a6923efa60bf08fb21b2168e54c9a05
|
|
7
|
+
data.tar.gz: ed8051f758b17826af9a84fbeff8b9bcac1f5d22ef88cd136ac80b9656671ded2f1ba016f6ac7b720675170a25d0c1bf5a45871ceb08702cb6fd4990f813a59c
|
data/Format.md
CHANGED
|
@@ -50,6 +50,16 @@ Multiple citations are allowed inside a bracket like this: `[cite_a, cite_b, cit
|
|
|
50
50
|
|
|
51
51
|
Note that, writing citation with `[cite_a][cite_b]` is confusing to use with regard to Markdown syntax. Either separating these two with `[cite_a]\relax[\cite_b]` or such trick may be possible.
|
|
52
52
|
|
|
53
|
+
## Backslash handling caution
|
|
54
|
+
|
|
55
|
+
Markdown provides backslash escapes for the special characters. Backslash with
|
|
56
|
+
following letter passed as is. Thus, if you want to use special characters,
|
|
57
|
+
you need to use backslash to escape. Note that if you want to use backslash itself,
|
|
58
|
+
you need to escape it by backslash too, so, if you want to put a line break
|
|
59
|
+
with two backslashes, you need four backslashes. Plan to have some automatic
|
|
60
|
+
escape when converting OmniOutliner file into Markdown, but is not available for now.
|
|
61
|
+
|
|
62
|
+
|
|
53
63
|
### Label format
|
|
54
64
|
|
|
55
65
|
Labels references are denoted by `[label-name]`. For labels inside the document
|
data/bin/oo2text
CHANGED
|
@@ -37,6 +37,12 @@ module OmniOutliner
|
|
|
37
37
|
def start_element(name, attrs)
|
|
38
38
|
@in_item = true if name == "item"
|
|
39
39
|
@in_style = true if name == "style"
|
|
40
|
+
if name == "cell"
|
|
41
|
+
# if it is a hyperlink, use name part as part of output
|
|
42
|
+
if n = attrs.find{|a| a[0] == "name"}
|
|
43
|
+
@str += n[1]
|
|
44
|
+
end
|
|
45
|
+
end
|
|
40
46
|
end
|
|
41
47
|
|
|
42
48
|
def end_element(name)
|
metadata
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: oo2md2tex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 0.0.5
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Shigeya Suzuki
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 2013-09-28 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: redcarpet
|
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
16
|
requirements:
|
|
19
17
|
- - ~>
|
|
20
18
|
- !ruby/object:Gem::Version
|
|
@@ -22,7 +20,6 @@ dependencies:
|
|
|
22
20
|
type: :runtime
|
|
23
21
|
prerelease: false
|
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
23
|
requirements:
|
|
27
24
|
- - ~>
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
@@ -30,7 +27,6 @@ dependencies:
|
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
|
31
28
|
name: nokogiri
|
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
|
33
|
-
none: false
|
|
34
30
|
requirements:
|
|
35
31
|
- - ~>
|
|
36
32
|
- !ruby/object:Gem::Version
|
|
@@ -38,7 +34,6 @@ dependencies:
|
|
|
38
34
|
type: :runtime
|
|
39
35
|
prerelease: false
|
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
-
none: false
|
|
42
37
|
requirements:
|
|
43
38
|
- - ~>
|
|
44
39
|
- !ruby/object:Gem::Version
|
|
@@ -64,27 +59,26 @@ files:
|
|
|
64
59
|
homepage: http://github.com/shigeya/oo2md2tex
|
|
65
60
|
licenses:
|
|
66
61
|
- ISC
|
|
62
|
+
metadata: {}
|
|
67
63
|
post_install_message:
|
|
68
64
|
rdoc_options: []
|
|
69
65
|
require_paths:
|
|
70
66
|
- lib
|
|
71
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
72
|
-
none: false
|
|
73
68
|
requirements:
|
|
74
|
-
- -
|
|
69
|
+
- - '>='
|
|
75
70
|
- !ruby/object:Gem::Version
|
|
76
71
|
version: '1.9'
|
|
77
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
|
-
none: false
|
|
79
73
|
requirements:
|
|
80
|
-
- -
|
|
74
|
+
- - '>='
|
|
81
75
|
- !ruby/object:Gem::Version
|
|
82
76
|
version: '0'
|
|
83
77
|
requirements: []
|
|
84
78
|
rubyforge_project:
|
|
85
|
-
rubygems_version:
|
|
79
|
+
rubygems_version: 2.0.3
|
|
86
80
|
signing_key:
|
|
87
|
-
specification_version:
|
|
81
|
+
specification_version: 4
|
|
88
82
|
summary: oo2text and md2tex
|
|
89
83
|
test_files: []
|
|
90
84
|
has_rdoc:
|