Add automatic HTML id attributes to markdown headings to allow linking
to content sections in wiki
This commit is contained in:
parent
14c9723724
commit
1127c98490
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ module ApplicationHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def markdown(text)
|
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,
|
no_intra_emphasis: true,
|
||||||
tables: true,
|
tables: true,
|
||||||
fenced_code_blocks: true,
|
fenced_code_blocks: true,
|
||||||
|
|
Loading…
Reference in a new issue