AoBane 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -2,6 +2,7 @@ AoBane The MarkDown Core Engine
2
2
  ======
3
3
 
4
4
  Powered By BlueFeather
5
+ See also [AoBane development memo](https://github.com/setminami/AoBane/wiki/development-memo).
5
6
 
6
7
  ##What's This and What You Can...
7
8
  This codes are extended from BlueFeather.<br>
@@ -1,3 +1,3 @@
1
1
  module AoBane
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/AoBane.rb CHANGED
@@ -38,7 +38,7 @@ require 'logger'
38
38
  require 'strscan'
39
39
  require 'stringio'
40
40
  require 'uri'
41
- require "math_ml/string"
41
+ require 'math_ml/string'
42
42
 
43
43
  module AoBane
44
44
  VERSION = '0.01'
@@ -522,7 +522,7 @@ module AoBane
522
522
  }
523
523
 
524
524
  #Insert by set.minami 2013-04-01
525
- text.gsub!(/\\{(.*?)\\}/){ |match|
525
+ text.gsub!(/\\TeX{(.*?)\\TeX}/){ |match|
526
526
  if $1.nil? then '' else $1.to_mathml end
527
527
  }
528
528
  #Insert by set.minami
data/test/Test.html CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  <h1 id="bfheader-0cbc6611f5540bd0809a388dc95a615b">Test</h1>
10
10
 
11
- <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>x</mi><mo>=</mo><mfrac><mrow><mo>-</mo><mi>b</mi><mo>&pm;</mo><msqrt><mrow><msup><mi>b</mi><mn>2</mn></msup><mo>-</mo><mn>4</mn><mi>a</mi><mi>c</mi></mrow></msqrt></mrow><mrow><mn>2</mn><mi>a</mi></mrow></mfrac></math>
11
+ <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>x</mi><mo stretchy='false'>=</mo><mfrac><mrow><mo stretchy='false'>-</mo><mi>b</mi><mo stretchy='false'>&pm;</mo><msqrt><mrow><msup><mi>b</mi><mn>2</mn></msup><mo stretchy='false'>-</mo><mn>4</mn><mi>a</mi><mi>c</mi></mrow></msqrt></mrow><mrow><mn>2</mn><mi>a</mi></mrow></mfrac></math>
12
12
 
13
13
  </body>
14
14
  </html>
data/test/Test.md CHANGED
@@ -1,3 +1,3 @@
1
1
  Test
2
2
  ===
3
- \{x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\}
3
+ \TeX{x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\TeX}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: AoBane
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-01 00:00:00.000000000 Z
12
+ date: 2013-04-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: math_ml