class Jekyll::Latex::Pdf::Figure::FigRefTag
Overrides the figref tag from jekyll-figure
Public Class Methods
new(tag_name, markup, tokens)
click to toggle source
Calls superclass method
# File lib/jekyll/latex/pdf/figure/figref.rb, line 11 def initialize(tag_name, markup, tokens) @label = markup.gsub(/\s/, '') super end
Public Instance Methods
render(_context)
click to toggle source
# File lib/jekyll/latex/pdf/figure/figref.rb, line 16 def render(_context) nomarkdown "\\ref{#{@label}}" end