Ready to merge

This commit is contained in:
Godwin
2015-08-21 19:29:43 -07:00
parent 8a05ac6e31
commit 43ab36071b
114 changed files with 27273 additions and 848 deletions
+5 -3
View File
@@ -385,6 +385,7 @@ module ApplicationHelper
end
def paragraph(object, attribute = nil)
return '' unless object
content = attribute ? object.send(attribute.to_s) : object
result = ''
if content =~ /<(p|span|h\d|div)[^>]*>/
@@ -403,11 +404,12 @@ module ApplicationHelper
filter_html: true,
hard_wrap: true,
space_after_headers: true,
fenced_code_blocks: true
fenced_code_blocks: true,
link_attributes: { target: "_blank" }
}), {
autolink: true,
superscript: true,
disable_indented_code_blocks: true
disable_indented_code_blocks: true,
superscript: true
})
result = @markdown.render(content)
end