module Jekyll::PrettyPrint
Public Instance Methods
pretty_print(input)
click to toggle source
# File lib/starter_web/_plugins/prettify.rb, line 34 def pretty_print(input) # 1st_stage cleanup content = Nokogiri::HTML input parsed_content = content.to_html # 2nd_stage cleanup pretty = HtmlBeautifier.beautify(parsed_content) pretty = pretty.sub('\s*<!DOCTYPE html>">','<!DOCTYPE html>') end