asciidoctor-mathml 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c0619715ace9622f25d68254f69f771a44d1aa0597504db6b05bc8696c4d7f49
|
|
4
|
+
data.tar.gz: 7ec1616de40c6a76fdf51a895a51c6d3391dce518e11b6cc2676e506722fbc73
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34e22e8d575421bdb246dbb6202ecf7a701511bd135715311de98cc861f572fdfce77f2e28c661cb9f559f80feb9c0b931e5a9931fac21af2860e3cf0a2130f6
|
|
7
|
+
data.tar.gz: a777e29d336e0b661f94732806d2150f5363b767aeba799a86d9548cd9690a13c80fdfccb9899fa7295d2574a93ceb6449bc13eabedf5c5ab24628dbcf5b39cd
|
|
@@ -87,6 +87,14 @@ module Asciidoctor
|
|
|
87
87
|
|
|
88
88
|
def convert_asciimath_to_mathml(text)
|
|
89
89
|
AsciiMath.parse(CGI.unescape_html(text)).to_mathml
|
|
90
|
+
rescue StandardError
|
|
91
|
+
warn <<~MESSAGE
|
|
92
|
+
Failed to parse the following Asciimath code:
|
|
93
|
+
|
|
94
|
+
#{text}
|
|
95
|
+
MESSAGE
|
|
96
|
+
|
|
97
|
+
raise
|
|
90
98
|
end
|
|
91
99
|
end
|
|
92
100
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: asciidoctor-mathml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- expeehaa
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-06-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciidoctor
|
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
71
71
|
- !ruby/object:Gem::Version
|
|
72
72
|
version: '0'
|
|
73
73
|
requirements: []
|
|
74
|
-
rubygems_version: 3.
|
|
74
|
+
rubygems_version: 3.5.9
|
|
75
75
|
signing_key:
|
|
76
76
|
specification_version: 4
|
|
77
77
|
summary: AsciiDoctor extension to convert STEM to MathML
|