html-to-markdown 3.2.3-x86_64-linux → 3.4.0.pre.rc.13-x86_64-linux
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/Steepfile +6 -0
- data/lib/bin/html-to-markdown +0 -0
- data/lib/html_to_markdown/version.rb +1 -1
- data/lib/html_to_markdown.rb +5 -3
- data/lib/html_to_markdown_rb.so +0 -0
- data/sig/types.rbs +769 -0
- metadata +12 -30
- data/.bundle/config +0 -2
- data/.gitignore +0 -3
- data/.rubocop.yml +0 -59
- data/Gemfile +0 -18
- data/Gemfile.lock +0 -173
- data/README.md +0 -331
- data/Rakefile +0 -26
- data/exe/html-to-markdown +0 -6
- data/html-to-markdown-rb.gemspec +0 -99
- data/lib/html_to_markdown_rs.rb +0 -3
- data/sig/html_to_markdown.rbs +0 -149
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 32464b1b131855dab25df9b4f12e324194dbb8b2054fea1563f97f97284876c7
|
|
4
|
+
data.tar.gz: 1bcff51eb4b3553cff0664bc94af36b3a3c902ec5c506c0ba47df76445e3e7f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19dc2124c9d54c6447ac63fbce9923f863761829f166a6c8ad2834259a3c3ef0681149fd7883cfc900c9b388c8ea7631f30a0f3fb01daba6cfb7045c19fd2fd3
|
|
7
|
+
data.tar.gz: b992b2d91f1402bf59a280c00a40733f64cd7a213a41624fd8b4f9c34b6eba537428bc79fe4f6e37932d1a2092c7182c9953ceaf355e618d3fa81643528c7808
|
data/Steepfile
CHANGED
|
@@ -7,6 +7,12 @@ target :lib do
|
|
|
7
7
|
|
|
8
8
|
check 'lib'
|
|
9
9
|
|
|
10
|
+
configure_code_diagnostics do |hash|
|
|
11
|
+
hash[Steep::Diagnostic::Ruby::UnannotatedEmptyCollection] = :hint
|
|
12
|
+
hash[Steep::Diagnostic::Ruby::UnknownConstant] = :hint
|
|
13
|
+
hash[Steep::Diagnostic::Ruby::NoMethod] = :hint
|
|
14
|
+
end
|
|
15
|
+
|
|
10
16
|
# Configure libraries
|
|
11
17
|
library 'pathname'
|
|
12
18
|
library 'open3'
|
|
Binary file
|
data/lib/html_to_markdown.rb
CHANGED
|
@@ -28,13 +28,15 @@ module HtmlToMarkdown
|
|
|
28
28
|
# - :preserve_tags - Array of tag names to preserve verbatim
|
|
29
29
|
# (and more, matching ConversionOptions fields)
|
|
30
30
|
# @return [String] The converted Markdown content.
|
|
31
|
-
def self.convert(html, options = {})
|
|
32
|
-
opts = if options.
|
|
31
|
+
def self.convert(html, options = {}, visitor = nil)
|
|
32
|
+
opts = if options.is_a?(HtmlToMarkdownRs::ConversionOptions)
|
|
33
|
+
options
|
|
34
|
+
elsif options.nil? || options.empty?
|
|
33
35
|
nil
|
|
34
36
|
else
|
|
35
37
|
HtmlToMarkdownRs::ConversionOptions.new(options)
|
|
36
38
|
end
|
|
37
|
-
result = HtmlToMarkdownRs.convert(html, opts)
|
|
39
|
+
result = HtmlToMarkdownRs.convert(html, opts, visitor)
|
|
38
40
|
result.content || ''
|
|
39
41
|
end
|
|
40
42
|
end
|
data/lib/html_to_markdown_rb.so
CHANGED
|
Binary file
|