change terms from txt to markdown

This commit is contained in:
Joshua Arts
2018-07-27 15:12:27 -04:00
parent 4b9ca3f13e
commit 2a2e4f285c
5 changed files with 21 additions and 2 deletions

View File

@ -25,7 +25,22 @@ module ApplicationHelper
Rails.configuration.allow_user_signup
end
# Determines if the BigBlueButton endpoint is the default.
def bigbluebutton_endpoint_default?
Rails.configuration.bigbluebutton_endpoint_default == Rails.configuration.bigbluebutton_endpoint
end
# Parses markdown for rendering.
def markdown(text)
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML,
no_intra_emphasis: true,
fenced_code_blocks: true,
disable_indented_code_blocks: true,
autolink: true,
tables: true,
underline: true,
highlight: true)
markdown.render(text).html_safe
end
end