summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormiks <miks@cubesystems.lv>2012-07-26 11:47:17 +0300
committermiks <miks@cubesystems.lv>2012-07-26 11:47:17 +0300
commit1127c9849096868eb3762350fc2b4124fd209cab (patch)
tree96e24633689d7bcd50a328b4f26adddf092cdf28
parent14c97237246f01da60ad73d9efd2c08c45927f09 (diff)
downloadgitlab-ce-1127c9849096868eb3762350fc2b4124fd209cab.tar.gz
Add automatic HTML id attributes to markdown headings to allow linking
to content sections in wiki
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 3f15fd9237f..ce1ff151215 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,