AoBane 0.1.3 → 0.1.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.
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#font size)`
11
- * *e.g.,* `*[blablabla](red|Times,Arial#5) -expand-> <font color="red" face="Times,Arial" size="5">blablabla</font>`
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>&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>`
@@ -1,3 +1,3 @@
1
1
  module AoBane
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3'
55
- VERSION_NUMBER = 0.0103
56
- RELEASE_DATE = '2013-04-13'
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!(/\*\[(.*?)\]\((.*?)(\|.*?)*(#.*?)*\)/){|match|
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('#') end + '">' +
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
@@ -58,5 +58,7 @@
58
58
 
59
59
  </div>
60
60
 
61
+ <p><font color="#ff0000" face="" size="5">foo</font></p>
62
+
61
63
  </body>
62
64
  </html>
data/test/Test.md CHANGED
@@ -28,4 +28,5 @@ abccccc
28
28
  |bar |
29
29
  |----------------------------------------------|
30
30
 
31
+ *[foo](#ff0000/5)
31
32
 
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.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: