Add render context to markdown renderer

This commit is contained in:
Riyad Preukschas 2012-07-24 01:45:08 +02:00
parent 058b71edf3
commit e1b4e22e5c
2 changed files with 11 additions and 1 deletions

View file

@ -43,7 +43,7 @@ module ApplicationHelper
end
def markdown(text)
@__renderer ||= Redcarpet::Markdown.new(Redcarpet::Render::GitlabHTML.new(filter_html: true), {
@__renderer ||= Redcarpet::Markdown.new(Redcarpet::Render::GitlabHTML.new(self, filter_html: true), {
no_intra_emphasis: true,
tables: true,
fenced_code_blocks: true,