Support octopress-hooks and octopress-date-format #1622
This commit is contained in:
parent
18784a4cb0
commit
73e540409c
11 changed files with 47 additions and 58 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue