use helper to markdown text
This commit is contained in:
parent
6c7706eb17
commit
1f3323f908
3 changed files with 6 additions and 2 deletions
|
@ -30,6 +30,10 @@ module ApplicationHelper
|
|||
end
|
||||
end
|
||||
|
||||
def markdown(text)
|
||||
RDiscount.new(text, :autolink, :no_pseudo_protocols, :safelink, :smart, :filter_html).to_html.html_safe
|
||||
end
|
||||
|
||||
def search_autocomplete_source
|
||||
projects = current_user.projects.map{ |p| { :label => p.name, :url => project_path(p) } }
|
||||
default_nav = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue