html2doc 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/html2doc/math.rb +1 -1
- data/lib/html2doc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04a1333f7d9f29c2bbc2ccb608b0db8fb371a804caecc9e9819020e1e3cffc6f
|
4
|
+
data.tar.gz: 99e3c17fdab490221462675c16c0b7b5980932c44fbe5f135f97967c1bc27e3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaec47e79e56196c02f7282a1d1b7ffdaf8b12ea1609bac6b3de11eae2c0a3792c146e8cf17222a0b16d48b93aed31d7c11ebb7d2c3b4b0e303f2a87342cf66e
|
7
|
+
data.tar.gz: 5f4ad050a690f096e220cb39c60eb11d4cb84eae0c79af61e8c9598438b05d307f87a8b90a6b5f8e530331ba41c5770d9537f8b65f03f43353978630cc4de56d
|
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
|
data/lib/html2doc/version.rb
CHANGED