app/operations/full_text/extract_text_content.rb
def parse_markdown(content)
      return nil if content.blank?

      doc = Kramdown::Document.new content

      html = Nokogiri::HTML.fragment doc.to_html

      html.text
    end
# Parse markdown content with `Kramdown` and extract the text
# from the generated HTML.
#
# @param [String] content
# @return [String]
Parse markdown content with `Kramdown` and extract the text
from the generated HTML.
Parse markdown content with ` Kramdown ` and extract the text from the generated HTML .
def parse_markdown(content)
      return nil if content.blank?
      doc = Kramdown::Document.new content
      html = Nokogiri::HTML.fragment doc.to_html
      html.text
    end
def parse_markdown ( content ) return nil if content . blank? doc = Kramdown :: Document . new content html = Nokogiri :: HTML . fragment doc . to_html html . text end
Parse markdown content with `Kramdown` and extract the text
from the generated HTML.
Parse markdown content with ` Kramdown ` and extract the text from the generated HTML .
None
String
content
None