html2rss 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +53 -2
  3. data/Gemfile.lock +10 -7
  4. data/docs/Html2rss.html +3 -3
  5. data/docs/Html2rss/AttributePostProcessors.html +6 -6
  6. data/docs/Html2rss/AttributePostProcessors/HtmlToMarkdown.html +325 -0
  7. data/docs/Html2rss/AttributePostProcessors/ParseTime.html +12 -18
  8. data/docs/Html2rss/AttributePostProcessors/ParseUri.html +4 -4
  9. data/docs/Html2rss/AttributePostProcessors/SanitizeHtml.html +38 -17
  10. data/docs/Html2rss/AttributePostProcessors/Substring.html +5 -5
  11. data/docs/Html2rss/AttributePostProcessors/Template.html +6 -6
  12. data/docs/Html2rss/Config.html +75 -23
  13. data/docs/Html2rss/FeedBuilder.html +1 -1
  14. data/docs/Html2rss/Item.html +14 -8
  15. data/docs/Html2rss/ItemExtractors.html +1 -1
  16. data/docs/Html2rss/ItemExtractors/Attribute.html +1 -1
  17. data/docs/Html2rss/ItemExtractors/CurrentTime.html +1 -1
  18. data/docs/Html2rss/ItemExtractors/Href.html +2 -2
  19. data/docs/Html2rss/ItemExtractors/Html.html +1 -1
  20. data/docs/Html2rss/ItemExtractors/Static.html +1 -1
  21. data/docs/Html2rss/ItemExtractors/Text.html +1 -1
  22. data/docs/Html2rss/Utils.html +86 -1
  23. data/docs/Html2rss/Utils/IndifferentAccessHash.html +1 -1
  24. data/docs/_index.html +8 -1
  25. data/docs/class_list.html +1 -1
  26. data/docs/file.README.html +1 -1
  27. data/docs/index.html +1 -1
  28. data/docs/method_list.html +69 -37
  29. data/docs/top-level-namespace.html +1 -1
  30. data/html2rss.gemspec +1 -0
  31. data/lib/html2rss/attribute_post_processors.rb +1 -0
  32. data/lib/html2rss/attribute_post_processors/html_to_markdown.rb +39 -0
  33. data/lib/html2rss/utils.rb +3 -4
  34. data/lib/html2rss/version.rb +1 -1
  35. metadata +19 -5
  36. data/.changelogrc +0 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae8cc23b576bb2c4524a79eba0205042193210e9a44740788622ea2c4bd8b4b6
4
- data.tar.gz: ee9d0c8bc4894a5961544d913a914790eab7081e9a6f473e0d0dd036260273d0
3
+ metadata.gz: 1dd1359a4c5131040c10f884cbe5ddf2645b6e8cd08432b48be3bba3259dabf1
4
+ data.tar.gz: cacf06dc936557983db59d2cab8fa5d98f6deccac9d321021a9d2794bf4fee5b
5
5
  SHA512:
6
- metadata.gz: '09c84e2c7c0182808750836990373e9b150aa6dcef6ba8570017ee9d4d0e0d883a7f78820a28a3f89673ac0bf9224870a12dfa2a270eabdc2af25e58d5a6bb70'
7
- data.tar.gz: 1a1e7ec59567b19c1f5e528f37bf2f90f7a362bf5f55f9757b73498b26b2af500a6c37c2a472fb330184c0438e4597b12fbb9e04e86d983dbbeecf57a73925ed
6
+ metadata.gz: a82068417d47cb9f15848526667d30bb5f26bbf7e36f1b2ad66381f2830d2aa753c0b7e14bda2ed65a7539535920167a85383b4ce37299d5fe10d52771397087
7
+ data.tar.gz: a6a53e264a5830b11d1dc8b498807cb9147a3bbc36156c0abc926f12e58d72c6668ebd7def89baf86b6e92ed56163a8553859d705e563884ae43ead7e639c07f
@@ -1,4 +1,54 @@
1
- # [0.3.1](https://github.com/gildesmarais/html2rss/compare/v0.3.0...v0.3.1) (2019-06-23)
1
+ # [](https://github.com/gildesmarais/html2rss/compare/v0.4.1...v) (2019-09-18)
2
+
3
+
4
+
5
+ ## [0.4.1](https://github.com/gildesmarais/html2rss/compare/v0.4.0...v0.4.1) (2019-09-18)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * building absolute url fails when a fragment is present ([#35](https://github.com/gildesmarais/html2rss/issues/35)) ([c1b6dc7](https://github.com/gildesmarais/html2rss/commit/c1b6dc7))
11
+
12
+
13
+ ### Features
14
+
15
+ * **postprocessors:** add html to markdown ([#34](https://github.com/gildesmarais/html2rss/issues/34)) ([6a4a462](https://github.com/gildesmarais/html2rss/commit/6a4a462))
16
+
17
+
18
+
19
+ # [0.4.0](https://github.com/gildesmarais/html2rss/compare/v0.3.3...v0.4.0) (2019-09-07)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * **template:** breaks when any method returns nil ([#32](https://github.com/gildesmarais/html2rss/issues/32)) ([0709958](https://github.com/gildesmarais/html2rss/commit/0709958))
25
+
26
+
27
+ ### Features
28
+
29
+ * **parse_time:** support setting of a time_zone ([#31](https://github.com/gildesmarais/html2rss/issues/31)) ([cecbe5e](https://github.com/gildesmarais/html2rss/commit/cecbe5e)), closes [#19](https://github.com/gildesmarais/html2rss/issues/19)
30
+ * **postprocessor:** add referrer-policy on img tag in sanitze html ([#24](https://github.com/gildesmarais/html2rss/issues/24)) ([a3b1d18](https://github.com/gildesmarais/html2rss/commit/a3b1d18))
31
+ * **rubocop:** add rubocop-rspec and (auto-)fix issues ([#22](https://github.com/gildesmarais/html2rss/issues/22)) ([dd539f6](https://github.com/gildesmarais/html2rss/commit/dd539f6))
32
+ * **rubocop:** enable more performance cops and relax config ([#21](https://github.com/gildesmarais/html2rss/issues/21)) ([67132bb](https://github.com/gildesmarais/html2rss/commit/67132bb))
33
+ * **sanitize_html:** rewrite relative urls to absolute in a and img elements ([#30](https://github.com/gildesmarais/html2rss/issues/30)) ([caf4e80](https://github.com/gildesmarais/html2rss/commit/caf4e80))
34
+ * **sanitze_html:** strip more attributes ([#28](https://github.com/gildesmarais/html2rss/issues/28)) ([9daa42e](https://github.com/gildesmarais/html2rss/commit/9daa42e)), closes [#26](https://github.com/gildesmarais/html2rss/issues/26)
35
+
36
+
37
+
38
+ ## [0.3.3](https://github.com/gildesmarais/html2rss/compare/v0.3.2...v0.3.3) (2019-07-01)
39
+
40
+
41
+
42
+ ## [0.3.2](https://github.com/gildesmarais/html2rss/compare/v0.3.1...v0.3.2) (2019-07-01)
43
+
44
+
45
+ ### Features
46
+
47
+ * enable usage of multiple post processors ([#17](https://github.com/gildesmarais/html2rss/issues/17)) ([8a9f7b4](https://github.com/gildesmarais/html2rss/commit/8a9f7b4))
48
+
49
+
50
+
51
+ ## [0.3.1](https://github.com/gildesmarais/html2rss/compare/v0.3.0...v0.3.1) (2019-06-23)
2
52
 
3
53
 
4
54
  ### Features
@@ -7,6 +57,7 @@
7
57
  * support attributes without selector, fallback to root element then ([#16](https://github.com/gildesmarais/html2rss/issues/16)) ([d99ae3d](https://github.com/gildesmarais/html2rss/commit/d99ae3d))
8
58
 
9
59
 
60
+
10
61
  # [0.3.0](https://github.com/gildesmarais/html2rss/compare/v0.2.2...v0.3.0) (2019-06-20)
11
62
 
12
63
 
@@ -17,7 +68,7 @@
17
68
 
18
69
 
19
70
 
20
- # [0.2.1](https://github.com/gildesmarais/html2rss/compare/v0.2.0...v0.2.1) (2018-11-18)
71
+ ## [0.2.2](https://github.com/gildesmarais/html2rss/compare/v0.2.0...v0.2.2) (2019-01-31)
21
72
 
22
73
 
23
74
  ### Bug Fixes
@@ -1,12 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- html2rss (0.4.0)
4
+ html2rss (0.4.1)
5
5
  activesupport (~> 5.0)
6
6
  faraday (~> 0.15)
7
7
  faraday_middleware (~> 0.13)
8
8
  hashie (~> 3.6)
9
9
  nokogiri (>= 1.10, < 2.0)
10
+ reverse_markdown (~> 1.3)
10
11
  sanitize (~> 5.0)
11
12
 
12
13
  GEM
@@ -40,9 +41,11 @@ GEM
40
41
  nokogumbo (2.0.1)
41
42
  nokogiri (~> 1.8, >= 1.8.4)
42
43
  parallel (1.17.0)
43
- parser (2.6.3.0)
44
+ parser (2.6.4.1)
44
45
  ast (~> 2.4.0)
45
46
  rainbow (3.0.0)
47
+ reverse_markdown (1.3.0)
48
+ nokogiri
46
49
  rspec (3.8.0)
47
50
  rspec-core (~> 3.8.0)
48
51
  rspec-expectations (~> 3.8.0)
@@ -56,23 +59,23 @@ GEM
56
59
  diff-lcs (>= 1.2.0, < 2.0)
57
60
  rspec-support (~> 3.8.0)
58
61
  rspec-support (3.8.2)
59
- rubocop (0.72.0)
62
+ rubocop (0.74.0)
60
63
  jaro_winkler (~> 1.5.1)
61
64
  parallel (~> 1.10)
62
65
  parser (>= 2.6)
63
66
  rainbow (>= 2.2.2, < 4.0)
64
67
  ruby-progressbar (~> 1.7)
65
68
  unicode-display_width (>= 1.4.0, < 1.7)
66
- rubocop-performance (1.4.0)
69
+ rubocop-performance (1.4.1)
67
70
  rubocop (>= 0.71.0)
68
- rubocop-rspec (1.34.1)
71
+ rubocop-rspec (1.35.0)
69
72
  rubocop (>= 0.60.0)
70
73
  ruby-progressbar (1.10.1)
71
- sanitize (5.0.0)
74
+ sanitize (5.1.0)
72
75
  crass (~> 1.0.2)
73
76
  nokogiri (>= 1.8.0)
74
77
  nokogumbo (~> 2.0)
75
- simplecov (0.17.0)
78
+ simplecov (0.17.1)
76
79
  docile (~> 1.1)
77
80
  json (>= 1.8, < 3)
78
81
  simplecov-html (~> 0.10.0)
@@ -79,7 +79,7 @@
79
79
  <dl>
80
80
  <dt>Defined in:</dt>
81
81
  <dd>lib/html2rss.rb<span class="defines">,<br />
82
- lib/html2rss/item.rb,<br /> lib/html2rss/utils.rb,<br /> lib/html2rss/config.rb,<br /> lib/html2rss/version.rb,<br /> lib/html2rss/feed_builder.rb,<br /> lib/html2rss/item_extractors.rb,<br /> lib/html2rss/item_extractors/href.rb,<br /> lib/html2rss/item_extractors/html.rb,<br /> lib/html2rss/item_extractors/text.rb,<br /> lib/html2rss/item_extractors/static.rb,<br /> lib/html2rss/attribute_post_processors.rb,<br /> lib/html2rss/item_extractors/attribute.rb,<br /> lib/html2rss/item_extractors/current_time.rb,<br /> lib/html2rss/attribute_post_processors/template.rb,<br /> lib/html2rss/attribute_post_processors/parse_uri.rb,<br /> lib/html2rss/attribute_post_processors/substring.rb,<br /> lib/html2rss/attribute_post_processors/parse_time.rb,<br /> lib/html2rss/attribute_post_processors/sanitize_html.rb</span>
82
+ lib/html2rss/item.rb,<br /> lib/html2rss/utils.rb,<br /> lib/html2rss/config.rb,<br /> lib/html2rss/version.rb,<br /> lib/html2rss/feed_builder.rb,<br /> lib/html2rss/item_extractors.rb,<br /> lib/html2rss/item_extractors/href.rb,<br /> lib/html2rss/item_extractors/html.rb,<br /> lib/html2rss/item_extractors/text.rb,<br /> lib/html2rss/item_extractors/static.rb,<br /> lib/html2rss/attribute_post_processors.rb,<br /> lib/html2rss/item_extractors/attribute.rb,<br /> lib/html2rss/item_extractors/current_time.rb,<br /> lib/html2rss/attribute_post_processors/template.rb,<br /> lib/html2rss/attribute_post_processors/parse_uri.rb,<br /> lib/html2rss/attribute_post_processors/substring.rb,<br /> lib/html2rss/attribute_post_processors/parse_time.rb,<br /> lib/html2rss/attribute_post_processors/sanitize_html.rb,<br /> lib/html2rss/attribute_post_processors/html_to_markdown.rb</span>
83
83
  </dd>
84
84
  </dl>
85
85
 
@@ -109,7 +109,7 @@
109
109
  <dt id="VERSION-constant" class="">VERSION =
110
110
 
111
111
  </dt>
112
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>0.3.3</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
112
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>0.4.1</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
113
113
 
114
114
  </dl>
115
115
 
@@ -343,7 +343,7 @@
343
343
  </div>
344
344
 
345
345
  <div id="footer">
346
- Generated on Sun Jul 14 19:35:05 2019 by
346
+ Generated on Wed Sep 18 12:52:16 2019 by
347
347
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
348
348
  0.9.20 (ruby-2.6.3).
349
349
  </div>
@@ -79,7 +79,7 @@
79
79
  <dl>
80
80
  <dt>Defined in:</dt>
81
81
  <dd>lib/html2rss/attribute_post_processors.rb<span class="defines">,<br />
82
- lib/html2rss/attribute_post_processors/template.rb,<br /> lib/html2rss/attribute_post_processors/parse_uri.rb,<br /> lib/html2rss/attribute_post_processors/substring.rb,<br /> lib/html2rss/attribute_post_processors/parse_time.rb,<br /> lib/html2rss/attribute_post_processors/sanitize_html.rb</span>
82
+ lib/html2rss/attribute_post_processors/template.rb,<br /> lib/html2rss/attribute_post_processors/parse_uri.rb,<br /> lib/html2rss/attribute_post_processors/substring.rb,<br /> lib/html2rss/attribute_post_processors/parse_time.rb,<br /> lib/html2rss/attribute_post_processors/sanitize_html.rb,<br /> lib/html2rss/attribute_post_processors/html_to_markdown.rb</span>
83
83
  </dd>
84
84
  </dl>
85
85
 
@@ -102,7 +102,7 @@
102
102
 
103
103
 
104
104
 
105
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="AttributePostProcessors/ParseTime.html" title="Html2rss::AttributePostProcessors::ParseTime (class)">ParseTime</a></span>, <span class='object_link'><a href="AttributePostProcessors/ParseUri.html" title="Html2rss::AttributePostProcessors::ParseUri (class)">ParseUri</a></span>, <span class='object_link'><a href="AttributePostProcessors/SanitizeHtml.html" title="Html2rss::AttributePostProcessors::SanitizeHtml (class)">SanitizeHtml</a></span>, <span class='object_link'><a href="AttributePostProcessors/Substring.html" title="Html2rss::AttributePostProcessors::Substring (class)">Substring</a></span>, <span class='object_link'><a href="AttributePostProcessors/Template.html" title="Html2rss::AttributePostProcessors::Template (class)">Template</a></span>
105
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="AttributePostProcessors/HtmlToMarkdown.html" title="Html2rss::AttributePostProcessors::HtmlToMarkdown (class)">HtmlToMarkdown</a></span>, <span class='object_link'><a href="AttributePostProcessors/ParseTime.html" title="Html2rss::AttributePostProcessors::ParseTime (class)">ParseTime</a></span>, <span class='object_link'><a href="AttributePostProcessors/ParseUri.html" title="Html2rss::AttributePostProcessors::ParseUri (class)">ParseUri</a></span>, <span class='object_link'><a href="AttributePostProcessors/SanitizeHtml.html" title="Html2rss::AttributePostProcessors::SanitizeHtml (class)">SanitizeHtml</a></span>, <span class='object_link'><a href="AttributePostProcessors/Substring.html" title="Html2rss::AttributePostProcessors::Substring (class)">Substring</a></span>, <span class='object_link'><a href="AttributePostProcessors/Template.html" title="Html2rss::AttributePostProcessors::Template (class)">Template</a></span>
106
106
 
107
107
 
108
108
  </p>
@@ -167,15 +167,15 @@
167
167
  <pre class="lines">
168
168
 
169
169
 
170
- 11
171
170
  12
172
171
  13
173
172
  14
174
173
  15
175
- 16</pre>
174
+ 16
175
+ 17</pre>
176
176
  </td>
177
177
  <td>
178
- <pre class="code"><span class="info file"># File 'lib/html2rss/attribute_post_processors.rb', line 11</span>
178
+ <pre class="code"><span class="info file"># File 'lib/html2rss/attribute_post_processors.rb', line 12</span>
179
179
 
180
180
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get_processor'>get_processor</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
181
181
  <span class='id identifier rubyid_camel_cased_name'>camel_cased_name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>_</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='symbol'>:capitalize</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span>
@@ -193,7 +193,7 @@
193
193
  </div>
194
194
 
195
195
  <div id="footer">
196
- Generated on Sun Jul 14 19:35:05 2019 by
196
+ Generated on Wed Sep 18 12:52:16 2019 by
197
197
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
198
198
  0.9.20 (ruby-2.6.3).
199
199
  </div>
@@ -0,0 +1,325 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Html2rss::AttributePostProcessors::HtmlToMarkdown
8
+
9
+ &mdash; Documentation by YARD 0.9.20
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "Html2rss::AttributePostProcessors::HtmlToMarkdown";
19
+ relpath = '../../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../../_index.html">Index (H)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../../Html2rss.html" title="Html2rss (module)">Html2rss</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../AttributePostProcessors.html" title="Html2rss::AttributePostProcessors (module)">AttributePostProcessors</a></span></span>
41
+ &raquo;
42
+ <span class="title">HtmlToMarkdown</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Html2rss::AttributePostProcessors::HtmlToMarkdown
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">Html2rss::AttributePostProcessors::HtmlToMarkdown</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <dl>
96
+ <dt>Defined in:</dt>
97
+ <dd>lib/html2rss/attribute_post_processors/html_to_markdown.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+
105
+ <p>Returns HTML code as Markdown formatted String. Before converting to markdown, the HTML is sanitized with SanitizeHtml. Imagine this HTML structure:</p>
106
+
107
+ <pre class="code ruby"><code class="ruby">&lt;section&gt;
108
+ Lorem &lt;b&gt;ipsum&lt;/b&gt; dolor...
109
+ &lt;iframe src=&quot;https://evil.corp/miner&quot;&gt;&lt;/iframe&gt;
110
+ &lt;script&gt;alert();&lt;/script&gt;
111
+ &lt;/section&gt;
112
+ </code></pre>
113
+
114
+ <p>YAML usage example:</p>
115
+
116
+ <pre class="code ruby"><code class="ruby">selectors:
117
+ description:
118
+ selector: section
119
+ extractor: html
120
+ post_process:
121
+ name: html_to_markdown
122
+ </code></pre>
123
+
124
+ <p>Would return:</p>
125
+
126
+ <pre class="code ruby"><code class="ruby"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Lorem **ipsum** dolor</span><span class='tstring_end'>&#39;</span></span>
127
+ </code></pre>
128
+
129
+
130
+ </div>
131
+ </div>
132
+ <div class="tags">
133
+
134
+
135
+ </div>
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+ <h2>
144
+ Instance Method Summary
145
+ <small><a href="#" class="summary_toggle">collapse</a></small>
146
+ </h2>
147
+
148
+ <ul class="summary">
149
+
150
+ <li class="public ">
151
+ <span class="summary_signature">
152
+
153
+ <a href="#get-instance_method" title="#get (instance method)">#<strong>get</strong> &#x21d2; String </a>
154
+
155
+
156
+
157
+ </span>
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+ <span class="summary_desc"><div class='inline'>
168
+ <p>Formatted in Markdown.</p>
169
+ </div></span>
170
+
171
+ </li>
172
+
173
+
174
+ <li class="public ">
175
+ <span class="summary_signature">
176
+
177
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(value, env) &#x21d2; HtmlToMarkdown </a>
178
+
179
+
180
+
181
+ </span>
182
+
183
+
184
+ <span class="note title constructor">constructor</span>
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+ <span class="summary_desc"><div class='inline'>
194
+ <p>A new instance of HtmlToMarkdown.</p>
195
+ </div></span>
196
+
197
+ </li>
198
+
199
+
200
+ </ul>
201
+
202
+
203
+ <div id="constructor_details" class="method_details_list">
204
+ <h2>Constructor Details</h2>
205
+
206
+ <div class="method_details first">
207
+ <h3 class="signature first" id="initialize-instance_method">
208
+
209
+ #<strong>initialize</strong>(value, env) &#x21d2; <tt><span class='object_link'><a href="" title="Html2rss::AttributePostProcessors::HtmlToMarkdown (class)">HtmlToMarkdown</a></span></tt>
210
+
211
+
212
+
213
+
214
+
215
+ </h3><div class="docstring">
216
+ <div class="discussion">
217
+
218
+ <p>Returns a new instance of HtmlToMarkdown</p>
219
+
220
+
221
+ </div>
222
+ </div>
223
+ <div class="tags">
224
+
225
+
226
+ </div><table class="source_code">
227
+ <tr>
228
+ <td>
229
+ <pre class="lines">
230
+
231
+
232
+ 28
233
+ 29
234
+ 30</pre>
235
+ </td>
236
+ <td>
237
+ <pre class="code"><span class="info file"># File 'lib/html2rss/attribute_post_processors/html_to_markdown.rb', line 28</span>
238
+
239
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
240
+ <span class='ivar'>@value</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="SanitizeHtml.html" title="Html2rss::AttributePostProcessors::SanitizeHtml (class)">SanitizeHtml</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="SanitizeHtml.html#initialize-instance_method" title="Html2rss::AttributePostProcessors::SanitizeHtml#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_get'><span class='object_link'><a href="SanitizeHtml.html#get-instance_method" title="Html2rss::AttributePostProcessors::SanitizeHtml#get (method)">get</a></span></span>
241
+ <span class='kw'>end</span></pre>
242
+ </td>
243
+ </tr>
244
+ </table>
245
+ </div>
246
+
247
+ </div>
248
+
249
+
250
+ <div id="instance_method_details" class="method_details_list">
251
+ <h2>Instance Method Details</h2>
252
+
253
+
254
+ <div class="method_details first">
255
+ <h3 class="signature first" id="get-instance_method">
256
+
257
+ #<strong>get</strong> &#x21d2; <tt>String</tt>
258
+
259
+
260
+
261
+
262
+
263
+ </h3><div class="docstring">
264
+ <div class="discussion">
265
+
266
+ <p>Returns formatted in Markdown</p>
267
+
268
+
269
+ </div>
270
+ </div>
271
+ <div class="tags">
272
+
273
+ <p class="tag_title">Returns:</p>
274
+ <ul class="return">
275
+
276
+ <li>
277
+
278
+
279
+ <span class='type'>(<tt>String</tt>)</span>
280
+
281
+
282
+
283
+ &mdash;
284
+ <div class='inline'>
285
+ <p>formatted in Markdown</p>
286
+ </div>
287
+
288
+ </li>
289
+
290
+ </ul>
291
+
292
+ </div><table class="source_code">
293
+ <tr>
294
+ <td>
295
+ <pre class="lines">
296
+
297
+
298
+ 34
299
+ 35
300
+ 36</pre>
301
+ </td>
302
+ <td>
303
+ <pre class="code"><span class="info file"># File 'lib/html2rss/attribute_post_processors/html_to_markdown.rb', line 34</span>
304
+
305
+ <span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span>
306
+ <span class='const'>ReverseMarkdown</span><span class='period'>.</span><span class='id identifier rubyid_convert'>convert</span> <span class='ivar'>@value</span>
307
+ <span class='kw'>end</span></pre>
308
+ </td>
309
+ </tr>
310
+ </table>
311
+ </div>
312
+
313
+ </div>
314
+
315
+ </div>
316
+
317
+ <div id="footer">
318
+ Generated on Wed Sep 18 12:52:17 2019 by
319
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
320
+ 0.9.20 (ruby-2.6.3).
321
+ </div>
322
+
323
+ </div>
324
+ </body>
325
+ </html>