diff options
author | Valeriy Sizov <vsv2711@gmail.com> | 2012-08-04 21:30:05 +0400 |
---|---|---|
committer | Valeriy Sizov <vsv2711@gmail.com> | 2012-08-04 21:30:05 +0400 |
commit | 1c60c3d73dfe9b12729a2d5339f12a34f31cf3f4 (patch) | |
tree | 9d2357861c4e58a50dc7aab98d68dec3ebc4044f /app | |
parent | c7579249024a119b56abcd2978a46a59ea0bb56a (diff) | |
parent | 1127c9849096868eb3762350fc2b4124fd209cab (diff) |
Merge pull request #1147 from miks/master
Add automatic HTML id attributes to markdown headings to allow linking to content sections in wiki
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
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, |