AoBane 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/lib/AoBane/version.rb +1 -1
- data/lib/AoBane.rb +5 -5
- data/test/Test.html +2 -0
- data/test/Test.md +1 -0
- metadata +1 -1
data/README.md
CHANGED
@@ -7,8 +7,8 @@ See also [AoBane development memo](https://github.com/setminami/AoBane/wiki/deve
|
|
7
7
|
##What's This and What You Can...
|
8
8
|
This codes are extended from BlueFeather.<br>
|
9
9
|
The points of difference are
|
10
|
-
* You can use font TAG like this-> `*[blablabla](color|font faces
|
11
|
-
* *e.g.,* `*[blablabla](red|Times,Arial
|
10
|
+
* You can use font TAG like this-> `*[blablabla](color|font faces/font size)`
|
11
|
+
* *e.g.,* `*[blablabla](red|Times,Arial/5) -expand-> <font color="red" face="Times,Arial" size="5">blablabla</font>`
|
12
12
|
- And I know that font TAG was duplicated in HTML5...
|
13
13
|
* You can use MathML by to code LaTeX string surrounding `\TeX{` and `\TeX}`. Use firefox renderer because of MathML specification.
|
14
14
|
* like this. `\TeX{x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\TeX} -expand-> <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>x</mi><mo>=</mo><mfrac><mrow><mo>-</mo><mi>b</mi><mo>±</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>`
|
data/lib/AoBane/version.rb
CHANGED
data/lib/AoBane.rb
CHANGED
@@ -51,9 +51,9 @@ require 'AoBane/utilities'
|
|
51
51
|
require 'math_ml/string'
|
52
52
|
|
53
53
|
module AoBane
|
54
|
-
VERSION = '0.1.
|
55
|
-
VERSION_NUMBER = 0.
|
56
|
-
RELEASE_DATE = '2013-04-
|
54
|
+
VERSION = '0.1.4'
|
55
|
+
VERSION_NUMBER = 0.0104
|
56
|
+
RELEASE_DATE = '2013-04-14'
|
57
57
|
VERSION_LABEL = "#{VERSION} (#{RELEASE_DATE})"
|
58
58
|
|
59
59
|
UTF8_BOM = "\xef\xbb\xbf"
|
@@ -523,13 +523,13 @@ module AoBane
|
|
523
523
|
@log.debug "Normalized line-endings: %p" % text
|
524
524
|
|
525
525
|
#Insert by set.minami 2013-03-30
|
526
|
-
text.gsub!(/\*\[(.*?)\]\((.*?)(\|.*?)*(
|
526
|
+
text.gsub!(/\*\[(.*?)\]\((.*?)(\|.*?)*(\/.*?)*\)/){|match|
|
527
527
|
'<font color="' +
|
528
528
|
if $2.nil? then '' else $2 end +'" ' +
|
529
529
|
'face="' +
|
530
530
|
if $3.nil? then '' else $3.delete('|') end + '" ' +
|
531
531
|
'size="' +
|
532
|
-
if $4.nil? then '' else $4.delete('
|
532
|
+
if $4.nil? then '' else $4.delete('/') end + '">' +
|
533
533
|
$1 + '</font>'
|
534
534
|
}
|
535
535
|
#Insert by set.minami 2013-04-13
|
data/test/Test.html
CHANGED
data/test/Test.md
CHANGED