Class: Redmine::WikiFormatting::Markdown::Formatter
- Inherits:
-
Object
- Object
- Redmine::WikiFormatting::Markdown::Formatter
- Includes:
- LinksHelper, SectionHelper
- Defined in:
- lib/redmine/wiki_formatting/markdown/formatter.rb
Constant Summary
Constants included from LinksHelper
Instance Method Summary collapse
-
#initialize(text) ⇒ Formatter
constructor
A new instance of Formatter.
- #to_html(*args) ⇒ Object
Methods included from SectionHelper
#extract_sections, #get_section, #update_section
Methods included from LinksHelper
#auto_link!, #auto_mailto!, #restore_redmine_links
Constructor Details
#initialize(text) ⇒ Formatter
Returns a new instance of Formatter.
63 64 65 |
# File 'lib/redmine/wiki_formatting/markdown/formatter.rb', line 63 def initialize(text) @text = text end |
Instance Method Details
#to_html(*args) ⇒ Object
67 68 69 70 71 |
# File 'lib/redmine/wiki_formatting/markdown/formatter.rb', line 67 def to_html(*args) html = formatter.render(@text) html = inline_restore_redmine_links(html) html end |