Merge pull request #139 from wok/master
Add support for HTML (Rails) and Ruby on Rails grammar
This commit is contained in:
commit
ba7d9ce799
|
@ -176,7 +176,7 @@ module.exports =
|
|||
beautifyHTML ?= require("js-beautify").html
|
||||
text = beautifyHTML(text, self.getOptions("html", allOptions))
|
||||
beautifyCompleted text
|
||||
when "HTML (Ruby - ERB)"
|
||||
when "HTML (Ruby - ERB)", "HTML (Rails)"
|
||||
beautifyHTMLERB ?= require("./langs/html-erb-beautify")
|
||||
beautifyHTMLERB text, self.getOptions("html", allOptions), beautifyCompleted
|
||||
when "CSS"
|
||||
|
@ -198,7 +198,7 @@ module.exports =
|
|||
when "Python"
|
||||
beautifyPython ?= require("./langs/python-beautify")
|
||||
beautifyPython text, self.getOptions("python", allOptions), beautifyCompleted
|
||||
when "Ruby"
|
||||
when "Ruby", "Ruby on Rails"
|
||||
beautifyRuby ?= require("./langs/ruby-beautify")
|
||||
beautifyRuby text, self.getOptions("ruby", allOptions), beautifyCompleted
|
||||
when "GitHub Markdown"
|
||||
|
|
Loading…
Reference in New Issue