Module: HtmlToMarkdown
- Defined in:
- lib/html_to_markdown.rb,
lib/html_to_markdown/version.rb,
ext/html_to_markdown_rb/src/html-to-markdown.rb,
ext/html_to_markdown_rb/src/html-to-markdown/version.rb
Overview
This file is auto-generated by alef — DO NOT EDIT. alef:hash:afa14606d1ee2edcab75ab5aac1601836f78c690b6a5e60f8fe6e5805e1af479 To regenerate: alef generate To verify freshness: alef verify –exit-code Issues & docs: github.com/kreuzberg-dev/alef frozen_string_literal: true
Constant Summary collapse
- VERSION =
'3.4.0.pre.rc.15'
Class Method Summary collapse
-
.convert(html, options = {}, visitor = nil) ⇒ String
Convert HTML to Markdown.
Class Method Details
.convert(html, options = {}, visitor = nil) ⇒ String
Convert HTML to Markdown.
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/html_to_markdown.rb', line 31 def self.convert(html, = {}, visitor = nil) opts = if .is_a?(HtmlToMarkdownRs::ConversionOptions) elsif .nil? || .empty? nil else HtmlToMarkdownRs::ConversionOptions.new() end result = HtmlToMarkdownRs.convert(html, opts, visitor) result.content || '' end |