in source/_plugins/snippet.rb [25:52]
def render(context)
if @content
snippet = @content
if @id
snippet = snippet[/
unless snippet
snippet = "START SNIPPET: " + @id + " not found in " + @url
STDERR.puts snippet
end
end
if @javadoc
unless @javadoc.to_s.strip.casecmp("FALSE") == 0
snippet = snippet.gsub /^\s*\*/, ''
snippet = CGI.unescapeHTML(snippet)
end
end
if @lang
snippet = "\r\n" + "```" + @lang + "\r\n" + snippet + "\r\n" + "```" + "\r\n"
else
snippet = "<p>" + escapeJekyll(snippet) + "</p>"
end
return snippet
else
raise 'Something went wrong in Snippet'
end
end