Commit 1127c984 authored by miks's avatar miks

Add automatic HTML id attributes to markdown headings to allow linking

to content sections in wiki
parent 14c97237
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment