nora_mark 0.2beta12 → 0.2beta13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nora_mark/html/default_transformer.rb +3 -2
- data/lib/nora_mark/node.rb +0 -1
- data/lib/nora_mark/version.rb +1 -1
- metadata +2 -3
- data/lib/nora_mark/generator.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: beaac139078706a425464ffe4808407b65fb0c4a
|
4
|
+
data.tar.gz: 2fe396e897a4e1ab00a4bbe5440e5c81177e4d55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffea896a52306f5f375561c28ba9c386dd0b9862caacc23ff6a4dc548654b52e1523af0727965d450f03c478634ec955bbd7babaeacaed26bf5c8d7abe4a294b
|
7
|
+
data.tar.gz: 995d5952fed0f74b682857473920847b3286c227fc41d37e6bca73df02ca31c053a96bba75fd3fefe46efdc75d1045a5544e62e7b4ba860afeedcfd72ba7edc8
|
@@ -44,8 +44,9 @@ module NoraMark
|
|
44
44
|
|
45
45
|
modify 'img' do
|
46
46
|
@node.body_empty = true
|
47
|
-
|
48
|
-
@node.attrs.merge!({
|
47
|
+
@node.attrs ||= {}
|
48
|
+
@node.attrs.merge!({src: [@node.params[0].text ]}) if @node.attrs[:src].nil?
|
49
|
+
@node.attrs.merge!({alt: [ escape_html(@node.params[1].text.strip)]}) if (@node.attrs[:alt].nil? && @node.p.size > 1 && @node.params[1].text.size > 0)
|
49
50
|
end
|
50
51
|
|
51
52
|
replace 'image' do
|
data/lib/nora_mark/node.rb
CHANGED
data/lib/nora_mark/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nora_mark
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2beta13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- KOJIMA Satoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kpeg
|
@@ -119,7 +119,6 @@ files:
|
|
119
119
|
- lib/nora_mark.rb
|
120
120
|
- lib/nora_mark/document.rb
|
121
121
|
- lib/nora_mark/extensions.rb
|
122
|
-
- lib/nora_mark/generator.rb
|
123
122
|
- lib/nora_mark/html/abstract_node_writer.rb
|
124
123
|
- lib/nora_mark/html/context.rb
|
125
124
|
- lib/nora_mark/html/default_transformer.rb
|
data/lib/nora_mark/generator.rb
DELETED
File without changes
|