Fixes styling of <figure> code header
This commit is contained in:
parent
31adeee1df
commit
44e4a991cf
2 changed files with 4 additions and 4 deletions
|
@ -61,7 +61,7 @@ module Jekyll
|
|||
@filetype = file.extname.sub('.','') if @filetype.nil?
|
||||
title = @title ? "#{@title} (#{file.basename})" : file.basename
|
||||
url = "/#{code_dir}/#{@file}"
|
||||
source = "<figure role=code><figcaption><span>#{title}</span> <a href='#{url}'>download</a></figcaption>\n"
|
||||
source = "<figure class='code'><figcaption><span>#{title}</span> <a href='#{url}'>download</a></figcaption>\n"
|
||||
source += " #{highlight(code, @filetype)}</figure>"
|
||||
safe_wrap(source)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue