bluedoc-sml 0.6.3 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bluedoc/sml/rules/base.rb +8 -1
- data/lib/bluedoc/sml/rules/span_with_mark.rb +4 -1
- data/lib/bluedoc/sml/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05e45c458938f737ece18f305f8546af185a4d2dadc0c7700e0cb159da723849
|
4
|
+
data.tar.gz: 17bda07a8d0c52147d82e281c936a7d1af5715d7ac68086b9b3d34c383a1616e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ba15e5ae42128363112ac21498494dcc4a567de70a57b76b7ee6ced9e8ed639d999fc50253ad6b3ac4d94ff4bd31766b57d3811dc7e40975c11191f86bc9a7a
|
7
|
+
data.tar.gz: 8a3a820c717f59d899bef8c871ec1386491faa10488e0801a1685299ddab0d7cc7ea8b028f75c827e29ecd02ada4c18d4c9cc5970d7bc0485c94072ad93642ca
|
@@ -22,7 +22,9 @@ module BlueDoc::SML::Rules
|
|
22
22
|
def self.to_html(node, opts = {})
|
23
23
|
children = opts[:renderer].children_to_html(node)
|
24
24
|
tag = tag_name(node)
|
25
|
-
|
25
|
+
attrs = attributes(node)
|
26
|
+
style_attrs = style_for_attrs(attrs)
|
27
|
+
%(<#{tag}#{style_attrs}>#{children}</#{tag}>)
|
26
28
|
end
|
27
29
|
|
28
30
|
def self.to_text(node, opts = {})
|
@@ -48,6 +50,11 @@ module BlueDoc::SML::Rules
|
|
48
50
|
end
|
49
51
|
end
|
50
52
|
|
53
|
+
# color
|
54
|
+
if attrs[:cl]
|
55
|
+
style["color"] = attrs[:cl];
|
56
|
+
end
|
57
|
+
|
51
58
|
props = css_attrs(style)
|
52
59
|
return "" if props.strip.blank?
|
53
60
|
%( style="#{props}")
|
data/lib/bluedoc/sml/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bluedoc-sml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|