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



1086
1087
1088
# File 'lib/html_to_markdown/native.rb', line 1086

def self.from_hash(hash)
  new
end

Instance Method Details

#continue?Boolean

Returns:

  • (Boolean)


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

def continue? = false

#custom?Boolean

Returns:

  • (Boolean)


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

def custom? = false

#error?Boolean

Returns:

  • (Boolean)


1082
1083
1084
# File 'lib/html_to_markdown/native.rb', line 1082

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

#preserve_html?Boolean

Returns:

  • (Boolean)


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

def preserve_html? = true

#skip?Boolean

Returns:

  • (Boolean)


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

def skip? = false