asciidoctor-mathematical 0.3.3 → 0.3.4

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: e817ca8a177571fe61d368e26b09d8b35e1560b38ac8f971e14281f403b88344
4
- data.tar.gz: 96d5d392cdf0ff18fd2d4bb3972247230f2c00b552b345ef42202f3327eede11
3
+ metadata.gz: 40baf9e028b3c45d87e6729315726abee28758f5503db1f0a139a11ca38bc185
4
+ data.tar.gz: d6e620377bb81cf8668f391c89e30460a011ce3913644968263667945c600d05
5
5
  SHA512:
6
- metadata.gz: 0a50106271975fa4975ff5511f969106e088de7e0a94d4fd64b65eff1c29d97c1131bdad2547732a90ca30555dd28c5fc2b31a2e74fc86b460764ace24dde8a1
7
- data.tar.gz: ec3da1e35a5d0ab1ef4ff6005b0aa81802e477400b87078564b0a9d32e85e92a6a1c288b02c048ef1a17ddd44e002e00030ff8ef4f7a304915200258068ea4e7
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
- else if (support_stem_prefix && (text.include? 'stem:')) || (text.include? 'latexmath:')
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?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-mathematical
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Stumm