asciidoctor-mathematical 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor-mathematical/extension.rb +2 -2
- 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: 40baf9e028b3c45d87e6729315726abee28758f5503db1f0a139a11ca38bc185
|
4
|
+
data.tar.gz: d6e620377bb81cf8668f391c89e30460a011ce3913644968263667945c600d05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73996778845f27a019b98e5fedd2dc3e2634bf27e5cc48aae7a342248b28c482a29d9ecae8d6ffde2c78f957ab599ef595674352e55b26eeb244309cbc13e319
|
7
|
+
data.tar.gz: 0eb1d78cdea5f7b3e97028b6b8b34b7b994d614ac7e8c99cd158b44d7b307ce8e451e90b4abdc64a7832790d5e818ebd9168e00f2e2af3132123cc5bb07cafbe
|
@@ -153,7 +153,7 @@ class MathematicalTreeprocessor < Asciidoctor::Extensions::Treeprocessor
|
|
153
153
|
source_modified = false
|
154
154
|
|
155
155
|
# TODO skip passthroughs in the source (e.g., +stem:[x^2]+)
|
156
|
-
if text != nil && text.include? ':'
|
156
|
+
if text != nil && (text.include? ':')
|
157
157
|
text = text.gsub(stem_rx) {
|
158
158
|
if (m = $~)[0].start_with? '\\'
|
159
159
|
next m[0][1..-1]
|
@@ -167,7 +167,7 @@ class MathematicalTreeprocessor < Asciidoctor::Extensions::Treeprocessor
|
|
167
167
|
|
168
168
|
if text.include? 'asciimath:'
|
169
169
|
eq_data = AsciiMath.parse(eq_data).to_latex
|
170
|
-
|
170
|
+
elsif (support_stem_prefix && (text.include? 'stem:')) || (text.include? 'latexmath:')
|
171
171
|
eq_data.gsub! '\]', ']'
|
172
172
|
subs = m[1].nil_or_empty? ? (to_html ? [:specialcharacters] : []) : (node.resolve_pass_subs m[1])
|
173
173
|
eq_data = node.apply_subs eq_data, subs unless subs.empty?
|