diff options
author | Brandon Mathis <brandon@imathis.com> | 2014-08-12 10:55:23 -0500 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2014-08-12 10:56:45 -0500 |
commit | 73e540409ceb8bc18048b6a96a4b815fc303ea28 (patch) | |
tree | ca3ae0e5cca03c7f0c8012a3ed4fbbf36b11ab9d /plugins/raw.rb | |
parent | 18784a4cb04ed658268a5a4ba9bdf399e0c898ff (diff) | |
download | my_new_personal_website-73e540409ceb8bc18048b6a96a4b815fc303ea28.tar.xz my_new_personal_website-73e540409ceb8bc18048b6a96a4b815fc303ea28.zip |
Support octopress-hooks and octopress-date-format #1622
Diffstat (limited to 'plugins/raw.rb')
-rw-r--r-- | plugins/raw.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/raw.rb b/plugins/raw.rb index 4b002625..e97c9459 100644 --- a/plugins/raw.rb +++ b/plugins/raw.rb @@ -3,11 +3,11 @@ # Purpose: This is useful for preventing Markdown and Textile from being too aggressive and incorrectly parsing in-line HTML. module TemplateWrapper # Wrap input with a <div> - def safe_wrap(input) + def self.safe_wrap(input) "<div class='bogus-wrapper'><notextile>#{input}</notextile></div>" end # This must be applied after the - def unwrap(input) + def self.unwrap(input) input.gsub /<div class='bogus-wrapper'><notextile>(.+?)<\/notextile><\/div>/m do $1 end |