prawndown-ext 0.1.4 → 0.1.5
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.
- checksums.yaml +4 -4
- data/lib/prawndown/parser.rb +2 -8
- data/lib/prawndown/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9faf10d4050bcb223f71cfb4e70709b24472e7a07e6bf7c98ccbf06d3008a621
|
4
|
+
data.tar.gz: 22e2ffd2f536b89d52d2a89a2257b41015a053ea7e9212ae4cd76afbd29bb0f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c8fe0e1339f041eafa92742a300e219dab5b7ef60c28dfe27a5995e76b7b2aaa81564ec5351b78aadc48e402c8ec93cc96cd1758a777f4bbdb5b220739cdfea
|
7
|
+
data.tar.gz: b5bd8aa3b0223302771abbd4692e9fc439e6329a5cad6045f4714c60bad1e27a5c9cfe5065f0a5b02f8af25f9519cf1952370491bca958f4fd44e091fb0910e1
|
data/lib/prawndown/parser.rb
CHANGED
@@ -76,16 +76,10 @@ module PrawndownExt
|
|
76
76
|
final_string.gsub(markdown_matcher, prawn_tag)
|
77
77
|
end
|
78
78
|
|
79
|
+
result = replace_options result
|
80
|
+
|
79
81
|
result = result.split("<command_break>")
|
80
82
|
|
81
|
-
i = 0
|
82
|
-
|
83
|
-
# replaces optional values here
|
84
|
-
while i < result.length
|
85
|
-
result[i] = replace_options result[i]
|
86
|
-
i += 1
|
87
|
-
end
|
88
|
-
|
89
83
|
result
|
90
84
|
|
91
85
|
end
|
data/lib/prawndown/version.rb
CHANGED