prawndown-ext 0.1.10 → 0.1.11
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 +3 -4
- 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: cde2a748cc80534bf28bcb5540cd5788eb3d2690b64fec3c0357f72edfaa25bf
|
4
|
+
data.tar.gz: dfcc6a5c1d475d660e3c8502e5351c91907bb5872a637f0a229e9f828c530945
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 756968bf80dfc61824d0a6825aaf966132b0a25fc4c62879cc32dfdba3454ab2e0f900b55f8c7658e4588d8631f9bcfa13cf065f1d117157f5bb41c0d6ed25ae
|
7
|
+
data.tar.gz: 443c379f6e4d49bcbaea754a6775d5099a74c1d0ccdba2a5e762c7923252f7716e4a1bb722e4f688ee3a16b41fb22e402664cbfec1ed95fde5ebc8e9e5c1dd3f
|
data/lib/prawndown/parser.rb
CHANGED
@@ -98,7 +98,7 @@ module PrawndownExt
|
|
98
98
|
|
99
99
|
def replace_options text
|
100
100
|
# remove nil options if it doesnt exist
|
101
|
-
|
101
|
+
|
102
102
|
DELETE_NAMES.each do |option|
|
103
103
|
if @options.key?(option)
|
104
104
|
if @options[option].nil?
|
@@ -106,6 +106,7 @@ module PrawndownExt
|
|
106
106
|
@options.delete(option)
|
107
107
|
end
|
108
108
|
end
|
109
|
+
|
109
110
|
end
|
110
111
|
|
111
112
|
# remove quote spacing if it doesnt exist
|
@@ -115,9 +116,7 @@ module PrawndownExt
|
|
115
116
|
end
|
116
117
|
|
117
118
|
DEFAULT_OPTIONS.keys.each do |replacer|
|
118
|
-
|
119
|
-
text = text.gsub(replacer.upcase, @options[replacer].to_s)
|
120
|
-
end
|
119
|
+
text = text.gsub(replacer.upcase, @options[replacer].to_s)
|
121
120
|
end
|
122
121
|
|
123
122
|
text
|
data/lib/prawndown/version.rb
CHANGED