markitdown 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/markitdown/version.rb +1 -1
- data/lib/markitdown.rb +1 -1
- data/spec/evernote.markdown +4 -0
- metadata +3 -3
data/lib/markitdown/version.rb
CHANGED
data/lib/markitdown.rb
CHANGED
@@ -11,7 +11,7 @@ module Markitdown
|
|
11
11
|
# gsub(/\n{2,}/,"\n\n") - collapse any series of more an than 2 new lines down to 2
|
12
12
|
# gsub(/\t+/," ") - collapse consecutive tabs down to a single space. I use tabs to pad divs and span, this causes multiple nested spans and divs to ultimately be surrounded by a single space.
|
13
13
|
# gsub(/ ([\.\?])/,'\1') - removes a space before a period or question mark. Things like links get surrounded by spaces. If they appear at the end of a sentence, this makes sure the punctation isn't off.
|
14
|
-
self.parse_node(node).flatten.compact.join.gsub(/\n\s+\n/,"\n\n").gsub(/\n{2,}/,"\n\n").gsub(/( > \n){2,}/,"\n > ").gsub(/\t+/," ").gsub(/ ([\.\?])/,'\1')
|
14
|
+
self.parse_node(node).flatten.compact.join.gsub(/\n\s+\n/,"\n\n").gsub(/\n{2,}/,"\n\n").gsub(/( > \n){2,}/,"\n > \n > ").gsub(/\t+/," ").gsub(/ ([\.\?])/,'\1')
|
15
15
|
end
|
16
16
|
|
17
17
|
private
|
data/spec/evernote.markdown
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
Overnight success rarely happens overnight.
|
2
2
|
|
3
|
+
>
|
3
4
|
>
|
4
5
|
> “I remember saying that I was just waiting for hockeystick growth. That doesn’t happen. You don’t just sit there, and all of the sudden there’s a lot of growth,” he said at PandoMonthly in San Francisco today.
|
6
|
+
>
|
5
7
|
> Hockey stick user adoption, like what he experienced with his next startup, Instagram, came from making a major change. Burbn was intially a check-in and communications app in a sea of a million check-in and communications apps. He realized that the thing he liked most about Burbn was the photos that the app’s 80 other active users shared. He decided to throw all his eggs in that basket, and boom — hockey stick growth.
|
8
|
+
>
|
6
9
|
> “We took in data about what our users were doing and focused in on that. The second we focused on what people were doing, it became a phenomenon,” he said.
|
7
10
|
>
|
11
|
+
>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markitdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -96,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: '0'
|
97
97
|
segments:
|
98
98
|
- 0
|
99
|
-
hash:
|
99
|
+
hash: 1279176731261814561
|
100
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
101
|
none: false
|
102
102
|
requirements:
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
version: '0'
|
106
106
|
segments:
|
107
107
|
- 0
|
108
|
-
hash:
|
108
|
+
hash: 1279176731261814561
|
109
109
|
requirements: []
|
110
110
|
rubyforge_project:
|
111
111
|
rubygems_version: 1.8.24
|