From b5b2b1b606af848d07f46058bcc00f49e2feef9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 22 May 2018 10:03:03 +0200 Subject: support image tag with fancybox --- bin/ImANerdRules.rb | 11 +++++++---- header | 5 ++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/bin/ImANerdRules.rb b/bin/ImANerdRules.rb index 2443f51..5d74d04 100755 --- a/bin/ImANerdRules.rb +++ b/bin/ImANerdRules.rb @@ -6,10 +6,13 @@ require 'redcarpet' module ImANerdRules class CustomRender < Redcarpet::Render::HTML - def header(text, header_level) - text =~ /([\d+\.?]+)/ - "#{text}" - end + def header(text, header_level) + text =~ /([\d+\.?]+)/ + "#{text}" + end + def image link, title, alt_text + "" + end end class Node diff --git a/header b/header index 98acda1..95032e1 100644 --- a/header +++ b/header @@ -1,6 +1,9 @@
- + + + +
-- cgit v1.1-2-g2b99