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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f30b96aec935dc29d7c33cc53d6979b281b89d4564fec2c47b47e649763affcb
4
- data.tar.gz: 20d2166bad0f58ae7f035fd89fe3699dae365f18e1fe9878cfa7f8be9f626b24
3
+ metadata.gz: 32464b1b131855dab25df9b4f12e324194dbb8b2054fea1563f97f97284876c7
4
+ data.tar.gz: 1bcff51eb4b3553cff0664bc94af36b3a3c902ec5c506c0ba47df76445e3e7f8
5
5
  SHA512:
6
- metadata.gz: f08eebd9ae4971c24869891b2f3dbb3e4822fe08bfe794eb0c6f3126f69ea1519083865e7a2595a7c8f9d2c192b87659488d87faab711f4c6245f3769c96660c
7
- data.tar.gz: 4fecfeaf22e13825433ce009958084d3a3a52bf84bd2a806c205b5eff3d967c81ecf5feb2aebf0e2d0fe6f39f53dac52857c909df7d6f5c254a6ed1ca00444f4
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HtmlToMarkdown
4
- VERSION = '3.2.3'
4
+ VERSION = '3.4.0.pre.rc.13'
5
5
  end
@@ -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.nil? || options.empty?
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
Binary file