File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ def render(context)
7979 if @filetype
8080 @filetype = 'objc' if @filetype == 'm'
8181 @filetype = 'perl' if @filetype == 'pl'
82+ @filetype = 'yaml' if @filetype == 'yml'
8283 source += " #{ highlight ( code , @filetype ) } </figure></div>"
8384 else
8485 source += "<pre><code>" + code . lstrip . rstrip . gsub ( /</ , '<' ) + "</code></pre></figure></div>"
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ def render(context)
5555 @filetype = file . extname . sub ( '.' , '' )
5656 @filetype = 'objc' if @filetype == 'm'
5757 @filetype = 'perl' if @filetype == 'pl'
58+ @filetype = 'yaml' if @filetype == 'yml'
5859 title = @title ? "#{ @title } (#{ file . basename } )" : file . basename
5960 url = "#{ context . registers [ :site ] . config [ 'url' ] } /#{ code_dir } /#{ @file } "
6061 source = "<div><figure role=code><figcaption><span>#{ title } </span> <a href='#{ url } '>download</a></figcaption>\n "
You can’t perform that action at this time.
0 commit comments