Skip to content

Instantly share code, notes, and snippets.

@CoffeeAndCode
CoffeeAndCode / gist_tag.rb
Last active December 10, 2015 20:28 — forked from BinaryMuse/gist_tag.rb
I forked the original (https://gist.github.com/803483#file-gist_tag-rb) since I was having issues with Markdown / Jekyll trying to parse the <noscript> content and completely screwing it up. Removed the <noscript> tags and instead I hide the content with js once the page loads.
require 'cgi'
require 'digest/md5'
require 'net/https'
require 'uri'
module Jekyll
class GistTag < Liquid::Tag
def initialize(tag_name, text, token)
super
@text = text