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 43 end
44 44  
45 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 47 no_intra_emphasis: true,
48 48 tables: true,
49 49 fenced_code_blocks: true,
... ...