Skip to content
This repository has been archived by the owner on Apr 19, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bootstraponline committed Dec 19, 2012
1 parent 8e3795c commit 93ec80f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gollum/markup.rb
Expand Up @@ -504,7 +504,7 @@ def extract_code(data)
"#{m_indent}#{id}" # print the SHA1 ID with the proper indentation "#{m_indent}#{id}" # print the SHA1 ID with the proper indentation
end end


data.gsub!(/^([ \t]*)``` ?([^\r\n]+)?\r?\n(.+?)\r?\n\1```[ \t\r]*$/m) do data.gsub!(/^([ \t]*)``` ?([^\r\n]+)?\r?\n(.+?)\r?\n\1```[ \t]*\r?$/m) do
lang = $2 ? $2.strip : nil lang = $2 ? $2.strip : nil
id = Digest::SHA1.hexdigest("#{lang}.#{$3}") id = Digest::SHA1.hexdigest("#{lang}.#{$3}")
cached = check_cache(:code, id) cached = check_cache(:code, id)
Expand Down

0 comments on commit 93ec80f

Please sign in to comment.