From 1127c9849096868eb3762350fc2b4124fd209cab Mon Sep 17 00:00:00 2001 From: miks Date: Thu, 26 Jul 2012 11:47:17 +0300 Subject: [PATCH] Add automatic HTML id attributes to markdown headings to allow linking to content sections in wiki --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 3f15fd92..ce1ff151 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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({ filter_html: true, with_toc_data: true }), { no_intra_emphasis: true, tables: true, fenced_code_blocks: true,