From 96529fae7a1cc7cfa4a760e662a99b99c2ea0e46 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Mon, 21 May 2012 20:12:27 -0500 Subject: [PATCH] Markdown/Textile escape system is more flexible and strips goofy parsing glitches much better --- plugins/raw.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/raw.rb b/plugins/raw.rb index 4b00262..36aa952 100644 --- a/plugins/raw.rb +++ b/plugins/raw.rb @@ -4,12 +4,12 @@ module TemplateWrapper # Wrap input with a
def safe_wrap(input) - "
#{input}
" + "
#{input}
" end # This must be applied after the def unwrap(input) - input.gsub /
(.+?)<\/notextile><\/div>/m do - $1 + input.gsub /([\s\S]*?)(.+?)([\s\S]*?)/m do + $2 end end end