add dtext prefix to header id in ruby dtext parser
This commit is contained in:
@@ -225,9 +225,9 @@ class DText
|
|||||||
content = $3
|
content = $3
|
||||||
|
|
||||||
if options[:inline]
|
if options[:inline]
|
||||||
"<h6 id=\"#{header_id}\">" + parse_inline(content, options) + "</h6>"
|
"<h6 id=\"dtext-#{header_id}\">" + parse_inline(content, options) + "</h6>"
|
||||||
else
|
else
|
||||||
"<#{tag} id=\"#{header_id}\">" + parse_inline(content, options) + "</#{tag}>"
|
"<#{tag} id=\"dtext-#{header_id}\">" + parse_inline(content, options) + "</#{tag}>"
|
||||||
end
|
end
|
||||||
when /^\s*\*+ /
|
when /^\s*\*+ /
|
||||||
parse_list(block, options)
|
parse_list(block, options)
|
||||||
|
|||||||
Reference in New Issue
Block a user