class Jekyll::RenderSideNoteTag
Public Class Methods
new(tag_name, text, tokens)
click to toggle source
Calls superclass method
# File lib/sidenote.rb, line 4 def initialize(tag_name, text, tokens) super @text = text.shellsplit end
Public Instance Methods
render(context)
click to toggle source
# File lib/sidenote.rb, line 8 def render(context) "<sup><label for='#{@text[0]}' class='margin-toggle sidenote-number'></label></sup><input type='checkbox' id='#{@text[0]}' class='margin-toggle'/><span class='sidenote'>#{@text[1]} </span>" end