Class: HelpEngine::HelpPage

Inherits:
ActiveRecord::Base
  • Object
show all
Extended by:
FriendlyId
Defined in:
app/models/help_engine/help_page.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.markdown_parserObject



17
18
19
# File 'app/models/help_engine/help_page.rb', line 17

def self.markdown_parser
  @markdown_parser ||= GitHub::Markdown
end

Instance Method Details

#markdownObject



21
22
23
# File 'app/models/help_engine/help_page.rb', line 21

def markdown
  self.class.markdown_parser
end

#to_htmlObject



13
14
15
# File 'app/models/help_engine/help_page.rb', line 13

def to_html
  markdown.render content
end