Module: Jekyll::PrettyPrint
- Defined in:
- lib/starter_web/_plugins/filter/prettify.rb
Instance Method Summary collapse
Instance Method Details
#pretty_print(input) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/starter_web/_plugins/filter/prettify.rb', line 31 def pretty_print(input) # 1st_stage cleanup content = Nokogiri::HTML input parsed_content = content.to_html # 2nd_stage cleanup pretty = HtmlBeautifier.beautify(parsed_content) end |