Commit 1127c9849096868eb3762350fc2b4124fd209cab

Authored by miks
1 parent 14c97237

Add automatic HTML id attributes to markdown headings to allow linking

to content sections in wiki
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/helpers/application_helper.rb
@@ -43,7 +43,7 @@ module ApplicationHelper @@ -43,7 +43,7 @@ module ApplicationHelper
43 end 43 end
44 44
45 def markdown(text) 45 def markdown(text)
46 - @__renderer ||= Redcarpet::Markdown.new(Redcarpet::Render::GitlabHTML.new(filter_html: true), { 46 + @__renderer ||= Redcarpet::Markdown.new(Redcarpet::Render::GitlabHTML.new({ filter_html: true, with_toc_data: true }), {
47 no_intra_emphasis: true, 47 no_intra_emphasis: true,
48 tables: true, 48 tables: true,
49 fenced_code_blocks: true, 49 fenced_code_blocks: true,