html-pipeline-bungo 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/html/pipeline/bungo/bungo_filter.rb +6 -1
- data/lib/html/pipeline/bungo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f0932647bc61cc247f7708ce536144fcbd0216a
|
4
|
+
data.tar.gz: 47afd3f26245c8b82b10fd10b422d91aa49606f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0d9c6d09504bdf86e4b9bf46b87a6ad2e6e535f5653c8aba34850960525f77dedf9a3023268d2ffccf1ec99368a527cd249dca989eaee690fcb84f6d23f963b
|
7
|
+
data.tar.gz: 38e7f75f0214a4f562b2ff4d0bf0c85f6978038f4d254dc956064f115468d85122549b9c5801a90e8a21dbfa2c00309cae333fab6949aeeed73e834867f816b3
|
@@ -6,7 +6,7 @@ module HTML
|
|
6
6
|
html = ruby_fliter(html)
|
7
7
|
html = emph_dot_fliter(html)
|
8
8
|
html = bold_fliter(html)
|
9
|
-
html
|
9
|
+
html = paragraph_fliter(html)
|
10
10
|
html.rstrip!
|
11
11
|
html
|
12
12
|
end
|
@@ -31,6 +31,11 @@ module HTML
|
|
31
31
|
"<b>#{$1}</b>"
|
32
32
|
end
|
33
33
|
end
|
34
|
+
|
35
|
+
def paragraph_fliter(text)
|
36
|
+
"<p>#{text.gsub(/\r\n|\r|\n/, "</p><p>")}</p>"
|
37
|
+
end
|
38
|
+
|
34
39
|
end
|
35
40
|
end
|
36
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html-pipeline-bungo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tetuyoko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: html-pipeline
|