aboutsummaryrefslogtreecommitdiff
path: root/plugins/raw.rb
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2015-05-04 14:55:10 -0700
committerZhiming Wang <zmwangx@gmail.com>2015-05-04 14:55:10 -0700
commit301679861a2440a10c9eac746cec86459f445ef9 (patch)
tree5aad22ead01cf0da226623f603f33867896c0fea /plugins/raw.rb
parentd0a07c64afba47bbe8bfb56ba9893296a73fc7db (diff)
downloadmy_new_personal_website-301679861a2440a10c9eac746cec86459f445ef9.tar.xz
my_new_personal_website-301679861a2440a10c9eac746cec86459f445ef9.zip
remove all Octopress stuff
Diffstat (limited to '')
-rw-r--r--plugins/raw.rb40
1 files changed, 0 insertions, 40 deletions
diff --git a/plugins/raw.rb b/plugins/raw.rb
deleted file mode 100644
index e97c9459..00000000
--- a/plugins/raw.rb
+++ /dev/null
@@ -1,40 +0,0 @@
-# Author: Brandon Mathis
-# Description: Provides plugins with a method for wrapping and unwrapping input to prevent Markdown and Textile from parsing it.
-# 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 self.safe_wrap(input)
- "<div class='bogus-wrapper'><notextile>#{input}</notextile></div>"
- end
- # This must be applied after the
- def self.unwrap(input)
- input.gsub /<div class='bogus-wrapper'><notextile>(.+?)<\/notextile><\/div>/m do
- $1
- end
- end
-end
-
-# Author: phaer, https://github.com/phaer
-# Source: https://gist.github.com/1020852
-# Description: Raw tag for jekyll. Keeps liquid from parsing text betweeen {% raw %} and {% endraw %}
-
-module Jekyll
- class RawTag < Liquid::Block
- def parse(tokens)
- @nodelist ||= []
- @nodelist.clear
-
- while token = tokens.shift
- if token =~ FullToken
- if block_delimiter == $1
- end_tag
- return
- end
- end
- @nodelist << token if not token.empty?
- end
- end
- end
-end
-
-Liquid::Template.register_tag('raw', Jekyll::RawTag)