booklab-sml 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/booklab/sml/rules/codeblock.rb +1 -1
- data/lib/booklab/sml/rules/file.rb +1 -0
- data/lib/booklab/sml/rules/heading.rb +1 -1
- data/lib/booklab/sml/rules/image.rb +1 -0
- data/lib/booklab/sml/rules/math.rb +4 -1
- data/lib/booklab/sml/rules/plantuml.rb +4 -1
- data/lib/booklab/sml/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30e79485c7e85c457be39d1512c57fa025bcda9c879a23b18b0cfb4922f051fe
|
4
|
+
data.tar.gz: 7ec715ebae02d3cbf5d2d0066b01092e43d49925bba72c0b55fdf93a2ded9019
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dedcca0d0c032236827c67cdf1bba7d522a951bfcf4e6b0fe300c09f73abc912892d912a5aeb74cd63a786eeaa9cc63f4876b63767e57eda3b2a50e7f73950f3
|
7
|
+
data.tar.gz: d63575938702e60ddc07e8f2d27e8d37ac303d57c5f14d7c43953e878f2588eeb7cea8b8eb1fdee3a45edd4909ef48482cf0f78b8613f7b4ca812f71a6efb781
|
@@ -10,7 +10,10 @@ module BookLab::SML::Rules
|
|
10
10
|
renderer = opts[:renderer]
|
11
11
|
attrs = attributes(node)
|
12
12
|
|
13
|
-
|
13
|
+
code = (attrs[:code] || "").strip
|
14
|
+
return "" if code.blank?
|
15
|
+
|
16
|
+
svg_code = URI::encode(code)
|
14
17
|
src = "#{renderer.config.mathjax_service_host}/svg?tex=#{svg_code}"
|
15
18
|
|
16
19
|
%(<img class="tex-image" src="#{src}">)
|
@@ -10,7 +10,10 @@ module BookLab::SML::Rules
|
|
10
10
|
attrs = attributes(node)
|
11
11
|
renderer = opts[:renderer]
|
12
12
|
|
13
|
-
|
13
|
+
code = (attrs[:code] || "").strip
|
14
|
+
return "" if code.blank?
|
15
|
+
|
16
|
+
svg_code = URI::encode(code)
|
14
17
|
%(<img src="#{renderer.config.plantuml_service_host}/svg/#{svg_code}" class="plantuml-image" />)
|
15
18
|
end
|
16
19
|
end
|
data/lib/booklab/sml/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: booklab-sml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
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-01-
|
11
|
+
date: 2019-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -110,7 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
|
-
|
113
|
+
rubyforge_project:
|
114
|
+
rubygems_version: 2.7.8
|
114
115
|
signing_key:
|
115
116
|
specification_version: 4
|
116
117
|
summary: SML is a rich text format for describe of the BookLab rich contents.
|