Bug fix nil parameter ApplicationHelper.markdown
Added specs for nil value parameter and header markdown
This commit is contained in:
parent
6c2dc92b84
commit
89d45f62a0
2 changed files with 18 additions and 0 deletions
|
|
@ -254,6 +254,8 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def markdown(text)
|
||||
return '' if text.nil?
|
||||
|
||||
options = {
|
||||
autolink: true,
|
||||
space_after_headers: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue