Class: HtmlToMarkdown::VisitResultPreserveHtml

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
VisitResult
Defined in:
lib/html_to_markdown/native.rb

Overview

Preserve original HTML (don't convert to markdown)

The element's raw HTML is included verbatim in the output.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_hash(hash) ⇒ Object



1128
1129
1130
# File 'lib/html_to_markdown/native.rb', line 1128

def self.from_hash(hash)
  new
end

Instance Method Details

#continue? ⇒ Boolean

Returns:

  • (Boolean)


1116
# File 'lib/html_to_markdown/native.rb', line 1116

def continue? = false

#custom? ⇒ Boolean

Returns:

  • (Boolean)


1118
# File 'lib/html_to_markdown/native.rb', line 1118

def custom? = false

#error? ⇒ Boolean

Returns:

  • (Boolean)


1124
1125
1126
# File 'lib/html_to_markdown/native.rb', line 1124

def error? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#preserve_html? ⇒ Boolean

Returns:

  • (Boolean)


1122
# File 'lib/html_to_markdown/native.rb', line 1122

def preserve_html? = true

#skip? ⇒ Boolean

Returns:

  • (Boolean)


1120
# File 'lib/html_to_markdown/native.rb', line 1120

def skip? = false