diff options
author | Patrick Spek <p.spek@tyil.nl> | 2021-02-05 09:55:25 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2021-04-01 07:26:50 +0200 |
commit | c455896ae9e69e2498742ff795e7886dee1ffa23 (patch) | |
tree | 62a7353cbd1b14b4dd93b453f1f38cfe533c66ec /_plugins/html-markdown.rb | |
parent | 32acfbf6bf21d52e987d1b7599128f75b759ab28 (diff) |
Move source files into src
Diffstat (limited to '_plugins/html-markdown.rb')
-rw-r--r-- | _plugins/html-markdown.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/_plugins/html-markdown.rb b/_plugins/html-markdown.rb deleted file mode 100644 index 7d60137..0000000 --- a/_plugins/html-markdown.rb +++ /dev/null @@ -1,17 +0,0 @@ -module Jekyll - class MarkdownBlock < Liquid::Block - def initialize(tag_name, text, tokens) - super - end - - require "redcarpet" - - def render(context) - content = super - - "#{Redcarpet::Markdown.new(Redcarpet::Render::HTML).render(content)}" - end - end -end - -Liquid::Template.register_tag('markdown', Jekyll::MarkdownBlock) |