strip trailing newlines from stripped markdown
This commit is contained in:
parent
234ebdb2e9
commit
3b03a7cdde
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ module MarkdownifyHelper
|
|||
|
||||
def strip_markdown(text)
|
||||
renderer = Redcarpet::Markdown.new(Redcarpet::Render::StripDown, :autolink => true)
|
||||
renderer.render(text)
|
||||
renderer.render(text).strip
|
||||
end
|
||||
|
||||
def process_newlines(message)
|
||||
|
|
|
|||
Loading…
Reference in a new issue