html2doc 1.5.0 → 1.5.2

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: a7fc9d0eb6cd4bb7611c145794fe61c8d085b8ece41978e1b76e9c0124e6d4ed
4
- data.tar.gz: 48f0e7bb2c806c702f956a68044d94e0cebdca9d9404acca1ad88099bae332e6
3
+ metadata.gz: 04a1333f7d9f29c2bbc2ccb608b0db8fb371a804caecc9e9819020e1e3cffc6f
4
+ data.tar.gz: 99e3c17fdab490221462675c16c0b7b5980932c44fbe5f135f97967c1bc27e3f
5
5
  SHA512:
6
- metadata.gz: 2236ee4ee2447e3bcedfffbc226dcc605fac292247c1b46fc0ea411d90e66b8a99eb1647706c083cb23ff07f019dc8e752565aa3c27c7526d0d28ac5e4ad9307
7
- data.tar.gz: 29e49ceed2cef4fbd1d3b233fe1d06137eb43ad54595690ee6b9dffeceed4d5fd050316adebe2c817e344bb2214a3251cbf5baee142e446e87841386060cd951
6
+ metadata.gz: eaec47e79e56196c02f7282a1d1b7ffdaf8b12ea1609bac6b3de11eae2c0a3792c146e8cf17222a0b16d48b93aed31d7c11ebb7d2c3b4b0e303f2a87342cf66e
7
+ data.tar.gz: 5f4ad050a690f096e220cb39c60eb11d4cb84eae0c79af61e8c9598438b05d307f87a8b90a6b5f8e530331ba41c5770d9537f8b65f03f43353978630cc4de56d
data/lib/html2doc/math.rb CHANGED
@@ -6,9 +6,8 @@ require "plane1converter"
6
6
 
7
7
  class Html2Doc
8
8
  def asciimath_to_mathml1(expr, retain_asciimath)
9
- warn expr
10
9
  ret = Plurimath::Math.parse(HTMLEntities.new.decode(expr), "asciimath").to_mathml
11
- .gsub(/<math>/, "<math xmlns='http://www.w3.org/1998/Math/MathML'>")
10
+ .gsub(/<math>/, "<math xmlns='http://www.w3.org/1998/Math/MathML'>").strip
12
11
  retain_asciimath and
13
12
  ret += "<asciimath>#{@c.encode(@c.decode(expr), :basic)}</asciimath>"
14
13
  ret
@@ -1,3 +1,3 @@
1
1
  class Html2Doc
2
- VERSION = "1.5.0".freeze
2
+ VERSION = "1.5.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html2doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.