nishisuke-blog-syntax 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b1e512af1279e9c97cca74d389350e2e1d728eb694c6f3465db680ae46fda50
|
4
|
+
data.tar.gz: 9f84affaae26827fd1c6de40a122e341e127bd5f8abab795cdfb4534be7d2779
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62c750bc1edb2faba02bb2fbc6cffa1fe48fd80e40f6e844685ed4016cd3faa6c7007d2200e1701a77ded6ac0138b6de9e5761a9131f1cc537883356197e69fd
|
7
|
+
data.tar.gz: 1c6ed6b5756c5937a486d7da4f479d2edb95a677f1f534e881d91cbceea0674ac29bdd526d2e35a9cc57b022974c976fce1751ffe7233b024ad5dbbe6fad39fb
|
@@ -14,7 +14,8 @@ module NishisukeBlogSyntax
|
|
14
14
|
|
15
15
|
def substitute(matched)
|
16
16
|
content_str = matched.match(PARSE_REGEXP)[1]
|
17
|
-
|
17
|
+
contents = content_str.split("\n").reject(&:empty?)
|
18
|
+
"<p>#{contents.join('<br>')}</p>"
|
18
19
|
end
|
19
20
|
end
|
20
21
|
end
|