app/helpers/account/markdown_helper.rb in bullet_train-1.6.28 vs app/helpers/account/markdown_helper.rb in bullet_train-1.6.29
- old
+ new
@@ -2,8 +2,8 @@
def markdown(string)
Commonmarker.to_html(string, options: {
extensions: {header_ids: true},
plugins: {syntax_highlighter: {theme: "InspiredGitHub"}},
render: {width: 120, unsafe: true}
- }).html_safe
+ }).gsub(/<(\/)?script/, '<\\1script').html_safe
end
end