diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/octopress_filters.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/octopress_filters.rb b/plugins/octopress_filters.rb index 8c9367ba..21c24eed 100644 --- a/plugins/octopress_filters.rb +++ b/plugins/octopress_filters.rb @@ -36,10 +36,11 @@ module OctopressFilters # Textile support input = input.gsub /<p>`{3}\s(\w+)<br\s*\/>\n(.+?)`{3}<\/p>/m do lang = $1 - str = $2.gsub(/^\s{4}/, '').gsub(/<br\s*\/>$/, '') + str = $2.gsub('<','<').gsub('>','>').gsub(/^\s{4}/, '').gsub(/(<br\s\/>)?$/, '') highlight(str, lang) end + # Regular HTML support input.gsub /^`{3}\s(\w+)\n(.+?)\n`{3}/m do lang = $1 str = $2.gsub(/^\s{4}/, '') |