Class: Jekyll::Latex::Pdf::Figure::FigRefTag
- Inherits:
-
Liquid::Tag
- Object
- Liquid::Tag
- Jekyll::Latex::Pdf::Figure::FigRefTag
- Includes:
- Utilities
- Defined in:
- lib/jekyll/latex/pdf/figure/figref.rb
Overview
Overrides the figref tag from jekyll-figure
Instance Method Summary collapse
-
#initialize(tag_name, markup, tokens) ⇒ FigRefTag
constructor
A new instance of FigRefTag.
- #render(_context) ⇒ Object
Methods included from Utilities
#nomarkdown, #nomarkdown_p, #run_cmds, #set_context_to
Constructor Details
#initialize(tag_name, markup, tokens) ⇒ FigRefTag
Returns a new instance of FigRefTag.
11 12 13 14 |
# File 'lib/jekyll/latex/pdf/figure/figref.rb', line 11 def initialize(tag_name, markup, tokens) @label = markup.gsub(/\s/, '') super end |
Instance Method Details
#render(_context) ⇒ Object
16 17 18 |
# File 'lib/jekyll/latex/pdf/figure/figref.rb', line 16 def render(_context) nomarkdown "\\ref{#{@label}}" end |