bluefeather 0.21 → 0.22
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/Rakefile.rb +1 -0
- data/doc/author-and-license.html +1 -1
- data/doc/en/author-and-license.html +1 -1
- data/doc/en/index.bfdoc +1 -1
- data/doc/en/index.html +1 -1
- data/doc/index.bfdoc +1 -1
- data/doc/index.html +1 -1
- data/lib/bluefeather.rb +4 -4
- data/spec/{escape-char.rb → escape.rb} +5 -2
- metadata +3 -3
data/Rakefile.rb
CHANGED
data/doc/author-and-license.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
<li><a href="http://ja.wikipedia.org/wiki/GNU_General_Public_License">Wikipedia - GNU General Public License</a></li>
|
19
19
|
</ul>
|
20
20
|
|
21
|
-
<p>BlueFeather への要望、ご意見、バグ報告などがありましたら、<a href="http://ruby.morphball.net/bluefeather/">BlueFeather 配布サイト</a>よりメッセージを送信していただくか、もしくは Dice(<a href="mai&#
|
21
|
+
<p>BlueFeather への要望、ご意見、バグ報告などがありましたら、<a href="http://ruby.morphball.net/bluefeather/">BlueFeather 配布サイト</a>よりメッセージを送信していただくか、もしくは Dice(<a href="mailto:tetradice@gmail.com">tetradice@gmail.com</a>)までメールでご連絡していただけるよう、よろしくお願いします。</p>
|
22
22
|
|
23
23
|
</body>
|
24
24
|
</html>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<p>If you want to send requests, comments, or bug reports to BlueFeather, please
|
25
25
|
feel free to post messages from
|
26
26
|
<a href="http://ruby.morphball.net/bluefeather/index_en.html">http://ruby.morphball.net/bluefeather/index_en.html</a> or to send mail to Dice.
|
27
|
-
(<a href="&#
|
27
|
+
(<a href="mailto:tetradice@gmail.com">tetradice@gmail.com</a>)</p>
|
28
28
|
|
29
29
|
</body>
|
30
30
|
</html>
|
data/doc/en/index.bfdoc
CHANGED
@@ -10,7 +10,7 @@ BlueFeather Manual
|
|
10
10
|
|
11
11
|
-> [Japanese version (original)](../index.html)
|
12
12
|
|
13
|
-
(2009-
|
13
|
+
(2009-06-15: this document based on version 0.22)
|
14
14
|
|
15
15
|
BlueFeather is software for converting text written by extended Markdown like
|
16
16
|
[PHP Markdown Extra][] to html. It is pair of command-line tool and pure Ruby
|
data/doc/en/index.html
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
<p>-> <a href="../index.html">Japanese version (original)</a></p>
|
14
14
|
|
15
|
-
<p>(2009-
|
15
|
+
<p>(2009-06-15: this document based on version 0.22)</p>
|
16
16
|
|
17
17
|
<p>BlueFeather is software for converting text written by extended Markdown like
|
18
18
|
<a href="http://michelf.com/projects/php-markdown/extra/">PHP Markdown Extra</a> to html. It is pair of command-line tool and pure Ruby
|
data/doc/index.bfdoc
CHANGED
data/doc/index.html
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
|
14
14
|
<p>→ <a href="en/index.html">English version</a></p>
|
15
15
|
|
16
|
-
<p>(2009-
|
16
|
+
<p>(2009-06-15 バージョン 0.22 準拠)</p>
|
17
17
|
|
18
18
|
<p>BlueFeather は、拡張 Markdown 記法で書かれたテキストを html に変換するソフトウェアです。
|
19
19
|
コマンドラインツールと、Ruby スクリプト内で変換を行うためのライブラリがセットになっています。</p>
|
data/lib/bluefeather.rb
CHANGED
@@ -42,8 +42,8 @@ require 'uri'
|
|
42
42
|
|
43
43
|
|
44
44
|
module BlueFeather
|
45
|
-
VERSION = '0.
|
46
|
-
VERSION_NUMBER = 0.
|
45
|
+
VERSION = '0.22'
|
46
|
+
VERSION_NUMBER = 0.22
|
47
47
|
RELEASE_DATE = '2009-05-16'
|
48
48
|
VERSION_LABEL = "#{VERSION} (#{RELEASE_DATE})"
|
49
49
|
|
@@ -507,7 +507,7 @@ module BlueFeather
|
|
507
507
|
|
508
508
|
|
509
509
|
def parse_document(source, default_enc = EncodingType::UTF8)
|
510
|
-
doc = Document.
|
510
|
+
doc = Document.parse(source, default_enc)
|
511
511
|
|
512
512
|
return document_to_html(doc)
|
513
513
|
end
|
@@ -646,7 +646,6 @@ module BlueFeather
|
|
646
646
|
text = transform_definition_lists( text, rs ) # BlueFeather Extension
|
647
647
|
text = transform_code_blocks( text, rs )
|
648
648
|
text = transform_block_quotes( text, rs )
|
649
|
-
text = transform_auto_links( text, rs )
|
650
649
|
text = hide_html_blocks( text, rs )
|
651
650
|
|
652
651
|
text = transform_tables(text, rs)
|
@@ -664,6 +663,7 @@ module BlueFeather
|
|
664
663
|
@log.debug "Applying span transforms to:\n %p" % str
|
665
664
|
|
666
665
|
str = transform_code_spans( str, rs )
|
666
|
+
str = transform_auto_links( str, rs )
|
667
667
|
str = encode_html( str )
|
668
668
|
str = transform_images( str, rs )
|
669
669
|
str = transform_anchors( str, rs )
|
@@ -12,7 +12,10 @@ describe 'Escape Characters:' do
|
|
12
12
|
@bf.parse_text("\\#{c}").should == "<p>#{c}</p>"
|
13
13
|
end
|
14
14
|
end
|
15
|
-
|
16
|
-
|
15
|
+
end
|
17
16
|
|
17
|
+
describe 'Backquote Escape:' do
|
18
|
+
specify do
|
19
|
+
BlueFeather.parse_text('`<http://example.net/>`').should == "<p><code><http://example.net/></code></p>"
|
20
|
+
end
|
18
21
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bluefeather
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: "0.
|
4
|
+
version: "0.22"
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dice
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-06-15 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -36,7 +36,7 @@ files:
|
|
36
36
|
- spec/cui.rb
|
37
37
|
- spec/dl.rb
|
38
38
|
- spec/encoding.rb
|
39
|
-
- spec/escape
|
39
|
+
- spec/escape.rb
|
40
40
|
- spec/footnote.rb
|
41
41
|
- spec/header-id.rb
|
42
42
|
- spec/lib/common.rb
|