html2doc 1.5.1 → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 014c86a7c0add074f682133c9612482a5ec6d48e6bd84d261efe1bbf01492434
4
- data.tar.gz: 7af840d88c2963846652a8baaf5b3a3243fd833becda6315200749a438a778a8
3
+ metadata.gz: 114c21f3bbc33c244fb49577d4c85334789a388be61d65c04765d33ed1913208
4
+ data.tar.gz: 60c00e3a300eb16db1f2332393d5ff9a45f65c60a8a1d40a1cfaba2767744249
5
5
  SHA512:
6
- metadata.gz: bcc3425f023a13639f57728cfb796da4b56e51b99c700f1251668609e44217d2c9131c063c5526621e6ec6be07274b7e97d841e43a76c9900d6898c37d82ddf2
7
- data.tar.gz: 0c28ae213c04e4d3d9bfe01cbcd9455773e584bf98a0067c85403d87ac19e7cec38ce02bcf68762d9701e6c180f692b19ca69c1b45aa28d95d78be57e99d42f2
6
+ metadata.gz: 606e87a4dcfd0a3e270588461c6150dd38b1baad57bfc90b3965806477945deeae0b2eaeca87af9800b70d214133b11588a66f8205108e3af87f13464306b34a
7
+ data.tar.gz: ecc2ad3631a0cafb9ff3b7f04022b9a977efac71099f7b256f840ec6d15e418bb18f426c729d6a40e9a9cc196f3e02d4cf0c5c448a99c6097c2da9d6b2bfb4d0
data/html2doc.gemspec CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.add_dependency "htmlentities", "~> 4.3.4"
30
30
  spec.add_dependency "image_size", ">= 3.2.0"
31
31
  spec.add_dependency "mime-types"
32
- spec.add_dependency "nokogiri", "~> 1.13"
32
+ spec.add_dependency "nokogiri", "~> 1.14"
33
33
  spec.add_dependency "plane1converter", "~> 0.0.1"
34
34
  spec.add_dependency "plurimath"
35
35
  spec.add_dependency "thread_safe"
data/lib/html2doc/math.rb CHANGED
@@ -7,7 +7,7 @@ require "plane1converter"
7
7
  class Html2Doc
8
8
  def asciimath_to_mathml1(expr, retain_asciimath)
9
9
  ret = Plurimath::Math.parse(HTMLEntities.new.decode(expr), "asciimath").to_mathml
10
- .gsub(/<math>/, "<math xmlns='http://www.w3.org/1998/Math/MathML'>")
10
+ .gsub(/<math>/, "<math xmlns='http://www.w3.org/1998/Math/MathML'>").strip
11
11
  retain_asciimath and
12
12
  ret += "<asciimath>#{@c.encode(@c.decode(expr), :basic)}</asciimath>"
13
13
  ret
@@ -1,3 +1,3 @@
1
1
  class Html2Doc
2
- VERSION = "1.5.1".freeze
2
+ VERSION = "1.5.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html2doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-18 00:00:00.000000000 Z
11
+ date: 2023-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.13'
61
+ version: '1.14'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.13'
68
+ version: '1.14'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: plane1converter
71
71
  requirement: !ruby/object:Gem::Requirement