Commit 052036b0 authored by Robert Lord's avatar Robert Lord

Fix incorrect header nesting in redcarpet patch

Spotted by @moizjv, thanks!
parent 60d1dbd3
module RedcarpetHeaderFix
def header(text, level, id)
clean_id = id.gsub(/[\.]/, '-').gsub(/[^a-zA-Z0-9\-_]/, '')
"<h#{level} id='#{clean_id}'>#{text}</h1>"
"<h#{level} id='#{clean_id}'>#{text}</h#{level}>"
end
end
......
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